Recognise that PEG.js-generated parsers are in fact generated

This commit is contained in:
Michael Ficarra
2012-06-19 11:18:51 -05:00
parent 8a9d8a15af
commit 11166911dc
3 changed files with 2996 additions and 11 deletions

2963
test/fixtures/javascript/parser.js vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -183,9 +183,13 @@ class TestBlob < Test::Unit::TestCase
assert blob("javascript/jquery-1.6.1.min.js").generated?
assert blob("javascript/jquery-1.4.2.min.js").generated?
# CoffeScript JS
# CoffeeScript-generated JS
# TODO
# These examples are to basic to tell
# PEG.js-generated parsers
assert blob("javascript/parser.js").generated?
# These examples are too basic to tell
assert !blob("javascript/empty.js").generated?
assert !blob("javascript/hello.js").generated?