fix(prop_test): "Nil expr evaluates to NULL" test — compare Value.kind, not Value == ""
CI / test (push) Has been cancelled
CI / verify (push) Has been cancelled

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:
2026-05-23 22:06:37 +03:00
parent 7d19e06805
commit a9ea80a1f8
+2 -2
View File
@@ -678,8 +678,8 @@ suite "Property-Based — evalExprValue Invariants":
test "Nil expr evaluates to NULL":
let v = qexec.evalExpr(nil, initTable[string, Value](), nil)
check v.kind == vkNull
let s = evalExpr(nil, initTable[string, Value](), nil)
check s == ""
let s = qexec.evalExpr(nil, initTable[string, Value](), nil)
check s.kind == vkNull
# ═══════════════════════════════════════════════════
# B-Tree Property-Based Invariants