mirror of
https://github.com/lukaszraczylo/llm-testbench.git
synced 2026-10-16 01:07:47 +00:00
fix(catalog): unify negation guard and harden round-2 evaluators
A shared NoUnnegatedMention primitive replaces four per-category implementations, with a bidirectional clause-scoped window and an adjectival cue set. The docker layer fixture drops WORKDIR, which creates a real layer and made the pinned answer wrong. The replica failover test now forces a JSON verdict so a negated answer cannot score. Remaining exact-answer tests migrate to ExactToken. Ordering prompts shuffle their candidate lists so echoing scores zero.
This commit is contained in:
@@ -235,6 +235,9 @@ func TestDelGitDetachedHeadRecoveryTest_Eval(t *testing.T) {
|
||||
{name: "correct order different case", response: `["Branch","Checkout"]`, want: 1},
|
||||
{name: "reversed order", response: `["checkout","branch"]`, want: 0},
|
||||
{name: "wrong second subcommand", response: `["branch","switch"]`, want: 0},
|
||||
{name: "single-command checkout -b is equally correct (D6)", response: `["checkout"]`, want: 1},
|
||||
{name: "single-command switch -c is equally correct (D6)", response: `["switch"]`, want: 1},
|
||||
{name: "bare branch alone leaves HEAD detached, not accepted (D6)", response: `["branch"]`, want: 0},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user