|
|
@ -93,10 +93,7 @@ mod tests { |
|
|
|
assert_eq!(Jit::from_source("1 + 2").unwrap(), 3); |
|
|
|
assert_eq!(Jit::from_source("2 + (2 - 1)").unwrap(), 3); |
|
|
|
assert_eq!(Jit::from_source("(2 + 3) - 1").unwrap(), 4); |
|
|
|
assert_eq!( |
|
|
|
Jit::from_source("1 + ((2 + 3) - (2 + 3))").unwrap(), |
|
|
|
1 |
|
|
|
); |
|
|
|
assert_eq!(Jit::from_source("1 + ((2 + 3) - (2 + 3))").unwrap(), 1); |
|
|
|
// parser fails
|
|
|
|
// assert_eq!(Jit::from_source("2 + 3 - 1").unwrap(), 4);
|
|
|
|
} |
|
|
|