diff --git a/src/interpreter.rs b/src/interpreter.rs index a6a4233c..f4ae621e 100644 --- a/src/interpreter.rs +++ b/src/interpreter.rs @@ -791,10 +791,9 @@ impl Interpreter { } } } - Value::Undefined | Value::Null => r = false, - // Other types cause every to evaluate to true even though - // it is supposed to happen only for empty domain. - _ => (), + _ => { + r = false; + } }; self.contexts.pop(); self.scopes.pop(); diff --git a/tests/interpreter/cases/every/tests.yaml b/tests/interpreter/cases/every/tests.yaml index 685499e0..43cff25d 100644 --- a/tests/interpreter/cases/every/tests.yaml +++ b/tests/interpreter/cases/every/tests.yaml @@ -114,7 +114,6 @@ cases: x1: 100 x2: 100 x3: 100 - x4: 100 - note: negative data: {}