updated test_percent()

This commit is contained in:
PaddiM8 2020-12-10 15:13:02 +01:00
parent fefacbc02c
commit ffe9ab860d

View File

@ -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]