sunjay / brain

A high level programming language that compiles into the brainfuck esoteric programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unit Testing

sunjay opened this issue · comments

We've been good to include some idea of what is valid or invalid in the example files, but we don't have any good tests to verify if these cases actually work as expected. We're only testing on perfect input.

We want to test things like

  • syntax errors
  • whitespace parsing robustness (allowing whitespace in all the right places)
  • string parsing edge cases (white space on the ends, escapes, etc.)
  • and more

Part of writing unit tests will depend on having #5 - Verbose errors implemented since we'll want to make sure we can give proper feedback when an error occurs instead of panicking.

  • Setup code coverage with kcov and codecov
  • Setup travis build and add badge to README