Skip to content

Commit

Permalink
Merge pull request #261 from hatoo/fix-bool-tag
Browse files Browse the repository at this point in the history
FIx bool's tag symbol
  • Loading branch information
oflatt authored Oct 16, 2023
2 parents a4559d2 + 23611ba commit 959afb9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl From<Symbol> for Value {
impl From<bool> for Value {
fn from(b: bool) -> Self {
Self {
tag: Symbol::from("Bool"),
tag: Symbol::from("bool"),
bits: b as u64,
}
}
Expand Down
11 changes: 11 additions & 0 deletions tests/bool.egg
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,15 @@
(check (= (bool->= 2 1) true))
(check (= (bool->= 1 1) true))

; Test bool's tag
(relation R (i64))
(function F (i64) bool)

(rule
((R i))
((set (F i) true))
)

(R 0)

(run 3)

0 comments on commit 959afb9

Please sign in to comment.