mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-06-26 20:52:29 +02:00
updated test_percent()
This commit is contained in:
parent
fefacbc02c
commit
ffe9ab860d
@ -424,10 +424,10 @@ mod tests {
|
|||||||
let stmt = Stmt::Expr(binary(
|
let stmt = Stmt::Expr(binary(
|
||||||
literal("5"),
|
literal("5"),
|
||||||
Percent,
|
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]
|
#[test]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user