Browse Source

Fix style check

pull/1/head
Ehsan M. Kermani 4 years ago
parent
commit
7568e1c818
  1. 5
      calculator/src/compiler/jit.rs

5
calculator/src/compiler/jit.rs

@ -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);
}

Loading…
Cancel
Save