Skip to content

Commit

Permalink
- Address PR comments
Browse files Browse the repository at this point in the history
Signed-off-by: William Johnson <[email protected]>
  • Loading branch information
William Johnson authored and William Johnson committed May 24, 2023
1 parent 10bb05a commit b28fe78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions jexl-eval/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion jexl-parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions jexl-parser/src/parser.lalrpop
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ String: String = {
};

Null: Option<Box<Expression>> = {
"Null" => None,
"null" => None,
"NULL" => None,
}

Identifier: String = {
Expand Down

0 comments on commit b28fe78

Please sign in to comment.