fixed tests.

This commit is contained in:
2025-11-30 16:35:14 -07:00
parent c5c4cfdc64
commit 5db31d087d
2 changed files with 101 additions and 96 deletions

View File

@@ -92,7 +92,7 @@ fn test_priority_expression() -> Result<()> {
let expression = parser.parse()?.unwrap();
assert_eq!("(let x = (4))", expression.to_string());
assert_eq!("(let x = 4)", expression.to_string());
Ok(())
}
@@ -109,7 +109,7 @@ fn test_binary_expression() -> Result<()> {
assert_eq!("(((45 * 2) - (15 / 5)) + (5 ** 2))", expr.to_string());
let expr = parser!("(5 - 2) * 10").parse()?.unwrap();
assert_eq!("(((5 - 2)) * 10)", expr.to_string());
assert_eq!("((5 - 2) * 10)", expr.to_string());
Ok(())
}