grncdr / js-shell-parse

parse bash, with javascript (UNMAINTAINED)
MIT License
90 stars 13 forks source link

Add tests extracted from shellcheck #13

Closed forivall closed 8 years ago

forivall commented 8 years ago

I extracted the tests from shellcheck, which will be useful for sindresorhus/module-requests#61. Also, I found that test results were much more readable when run with tap instead of tape.

grncdr commented 8 years ago

Cool, thanks! Any help with the 115 failures is also very appreciated :wink:

forivall commented 8 years ago

FYI, these all test that they can parse, not that they're parsing correctly. ast.jsons need to be added to each of the fixture dirs (which i'll be doing).

I'm currently working on parsing arithmetic expressions properly. PR will come sometime soon. Yay!

grncdr commented 8 years ago

Fully understood about needing the ast.json for test fixtures. Regarding numeric expression parsing, that would be awesome :+1: