demizer/go-rst

Provide tests for lexer function

demizer opened this issue · 0 comments

The lexer functions need to be properly tested, similar to how the parser functions are tested.

peek()
peekBack()
next()
backup()

While implementing inline markup, I found a few problems with next() and backup() that should have been found with proper testing!