fix(prop_test): "Nil expr evaluates to NULL" test — compare Value.kind, not Value == ""
The test was comparing a Value to a string literal which always failed. Changed to check s.kind == vkNull on both calls. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -678,8 +678,8 @@ suite "Property-Based — evalExprValue Invariants":
|
|||||||
test "Nil expr evaluates to NULL":
|
test "Nil expr evaluates to NULL":
|
||||||
let v = qexec.evalExpr(nil, initTable[string, Value](), nil)
|
let v = qexec.evalExpr(nil, initTable[string, Value](), nil)
|
||||||
check v.kind == vkNull
|
check v.kind == vkNull
|
||||||
let s = evalExpr(nil, initTable[string, Value](), nil)
|
let s = qexec.evalExpr(nil, initTable[string, Value](), nil)
|
||||||
check s == ""
|
check s.kind == vkNull
|
||||||
|
|
||||||
# ═══════════════════════════════════════════════════
|
# ═══════════════════════════════════════════════════
|
||||||
# B-Tree Property-Based Invariants
|
# B-Tree Property-Based Invariants
|
||||||
|
|||||||
Reference in New Issue
Block a user