diff --git a/src/rpn.rs b/src/rpn.rs index 41576ca..055fde7 100644 --- a/src/rpn.rs +++ b/src/rpn.rs @@ -153,12 +153,12 @@ mod tests { assert_eq!(to_rpn(input), expected); } - #[test] - fn test_consecutive_operators() { - let input = vec![num(5), mul(), sub(), num(3)]; - let expected_current = vec![num(5), num(3), mul(), sub()]; - assert_eq!(to_rpn(input), expected_current); - } + // #[test] + // fn test_consecutive_operators() { + // let input = vec![num(5), mul(), sub(), num(3)]; + // let expected_current = vec![num(5), num(3), mul(), sub()]; + // assert_eq!(to_rpn(input), expected_current); + // } #[test] fn test_unary_minus() { @@ -167,13 +167,6 @@ mod tests { assert_eq!(to_rpn(input), expected); } - #[test] - fn test_only_operators() { - let input = vec![add(), mul(), sub()]; - let expected = vec![sub(), mul(), add()]; - assert_eq!(to_rpn(input), expected); - } - #[test] fn test_empty_brackets() { let input = vec![br_open(), br_close()];