Tripped over this while writing a different test (and doing the line-number program incorrectly).
There are UI aspects here that I thought people might want to express an opinion about.
This one doesn't depend on others of my in-flight patches, although it's obviously in the same area.
Would it be useful to print the expected and actual length? Can you add a test for this?