Skip to content

Commit

Permalink
one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhibas committed Feb 13, 2024
1 parent 4342983 commit 60428aa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ mod tests {

assert_eq!(eval(&parse("a < 4").unwrap().1, &context).unwrap(), true);
assert_eq!(eval(&parse("a < 3.3").unwrap().1, &context).unwrap(), true);
assert_eq!(
eval(
&parse("a > 3.15").unwrap().1,
&HashMap::from([("a", Atom::Float(3.14))])
)
.unwrap(),
false
);
assert_eq!(
eval(
&parse("a < 3.1415").unwrap().1,
Expand Down

0 comments on commit 60428aa

Please sign in to comment.