mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-01-21 12:38:34 +01:00
updated test_percent()
This commit is contained in:
parent
fefacbc02c
commit
ffe9ab860d
@ -424,10 +424,10 @@ mod tests {
|
||||
let stmt = Stmt::Expr(binary(
|
||||
literal("5"),
|
||||
Percent,
|
||||
group(binary(literal("3"), Star, unary(Percent, literal("2")))),
|
||||
group(binary(literal("3"), Plus, unary(Percent, literal("2")))),
|
||||
));
|
||||
|
||||
assert!(cmp(interpret(stmt).unwrap().unwrap(), 0.14));
|
||||
assert!(cmp(interpret(stmt).unwrap().unwrap(), 1.94));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
Reference in New Issue
Block a user