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

(0) -10 -1 +1 +10 tip

mercurial