Problem
A contains scorer with an empty-string needle always passes ("".includes("") is trivially true), so a misconfigured suite goes green.
Where
src/scorers/contains.ts: needles are normalized and checked with hay.includes(...) with no empty-needle guard.
Acceptance
Add a failing test first asserting contains with value: "" returns passed: false. Then fix.
Problem
A
containsscorer with an empty-string needle always passes ("".includes("")is trivially true), so a misconfigured suite goes green.Where
src/scorers/contains.ts: needles are normalized and checked withhay.includes(...)with no empty-needle guard.Acceptance
Add a failing test first asserting
containswithvalue: ""returnspassed: false. Then fix.