diff --git a/jexl-eval/src/lib.rs b/jexl-eval/src/lib.rs index 488e34b..7312acb 100644 --- a/jexl-eval/src/lib.rs +++ b/jexl-eval/src/lib.rs @@ -803,7 +803,7 @@ mod tests { value!([{"bobo": 50, "fofo": 100}, {"bobo": 60, "baz": 90}]) ); } - + #[test] fn test_binary_op_eq_ne() { let evaluator = Evaluator::new(); @@ -835,8 +835,7 @@ mod tests { test("BOOLEAN", "true", true); test("OBJECT", "OBJECT", true); test("ARRAY", "[ 'string' ]", true); - test("NULL", "Null", true); - test("NULL", "null", true); + test("NULL", "null", true); test("OBJECT", "{ 'x': 1, 'y': 2 }", false); diff --git a/jexl-parser/src/lib.rs b/jexl-parser/src/lib.rs index f08ceb1..86114bd 100644 --- a/jexl-parser/src/lib.rs +++ b/jexl-parser/src/lib.rs @@ -138,7 +138,7 @@ mod tests { #[test] fn test_dot_op_equality_with_null() { - let exp = "foo.bar == Null"; + let exp = "foo.bar == null"; let parsed = Parser::parse(exp).unwrap(); assert_eq!( parsed, diff --git a/jexl-parser/src/parser.lalrpop b/jexl-parser/src/parser.lalrpop index 5526159..a7d7145 100644 --- a/jexl-parser/src/parser.lalrpop +++ b/jexl-parser/src/parser.lalrpop @@ -128,9 +128,7 @@ String: String = { }; Null: Option> = { - "Null" => None, "null" => None, - "NULL" => None, } Identifier: String = {