Test gen order of operations arithmetic

This commit is contained in:
Richard Feldman 2020-02-25 23:28:29 -05:00
parent 71eacdabab
commit e90b8fd62f

View File

@ -651,6 +651,19 @@ mod test_gen {
);
}
#[test]
fn gen_order_of_arithmetic_ops() {
assert_evals_to!(
indoc!(
r#"
1 + 3 * 7 - 2
"#
),
20,
i64
);
}
#[test]
fn return_unnamed_fn() {
assert_evals_to!(