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

Correct (I think) notation to make optional phrases optional

(0) -10 -2 +2 +10 tip

mercurial