Verifier borrow/provenance work, new phase3 shield_index conformance cases, dev-intervals/dev-lru/dev-shards tasks with evaluate.py harness, and agent skill/hook config.
20 lines
497 B
Bash
Executable File
20 lines
497 B
Bash
Executable File
#!/bin/sh
|
|
# Public test: the example from the task statement.
|
|
zig build-exe main.zig 2>&1 || { echo "FAIL: build"; exit 1; }
|
|
got=$(printf '%s' 'add 10 20
|
|
add 20 25
|
|
covered 24
|
|
remove 12 14
|
|
list
|
|
count
|
|
total
|
|
add 5 5
|
|
' | ./main) || { echo "FAIL: the program exited with an error"; exit 1; }
|
|
expected=$(printf "%s" 'yes
|
|
10-12 14-25
|
|
2
|
|
13
|
|
error
|
|
')
|
|
if [ "$got" = "$expected" ]; then echo PASS; else echo "FAIL"; echo "--- expected"; printf '%s' "$expected"; echo "--- got"; printf '%s' "$got"; exit 1; fi
|