tests: Add support for checking the consumed part of the input

Correct (I think) notation to make optional phrases optional

Whitespace fixes

(0) -10 -3 +3 +10 tip

mercurial