sector-f / toylang

The most-creatively-named toy language in the world
3 stars 3 forks source link

Add tests for parser #1

Open sector-f opened 6 years ago

sector-f commented 6 years ago

Right now there's a wonderful src/parser.rs file with a wonderful tests module that is doing...absolutely nothing.

It would probably be a very good idea to add some tests to that section to make sure things get parsed correctly. This may involve marking more rules in src/grammar.rustpeg as pub.

sector-f commented 6 years ago

I just added some tests, but more would definitely be welcome