test(sem): prove the ignore-BOM cases parsed the file before they pass

main

Commit

Suhaan Thayyil2d ago

Two of the four cases expect "not excluded", and an assertion that only reads a match outcome is satisfied by a reader that parsed nothing at all. Stubbing loadReaderWithBudget to return immediately turned only the two positive cases red; the two negative ones passed for free, so they were not holding the claim their names make.

Each case now carries an unmarked control pattern on its own line and asserts the control matches before it judges the marked one, which makes every case state that the file was read. Under the same stub all four are now red. The fix-direction proofs are unchanged: never dropping the mark turns only "one mark at byte zero is dropped" red, and dropping every leading mark turns only "a second mark is pattern text" red.