Add a javascript sc test

db4
Chris Double 2008-06-19 01:45:09 +12:00
parent d5e5e47944
commit 2b2ede0a89
1 changed files with 9 additions and 0 deletions

View File

@ -26,6 +26,14 @@ IN: peg.javascript.parser.tests
"123; 'hello'; foo(x);" tokenizer ast>> javascript ast>> "123; 'hello'; foo(x);" tokenizer ast>> javascript ast>>
] unit-test ] unit-test
{ t } [
<"
var x=5
var y=10
"> tokenizer ast>> javascript remaining>> length zero?
] unit-test
{ t } [ { t } [
<" <"
function foldl(f, initial, seq) { function foldl(f, initial, seq) {
@ -46,3 +54,4 @@ ParseState.prototype.from = function(index) {
} }
"> tokenizer ast>> javascript remaining>> length zero? "> tokenizer ast>> javascript remaining>> length zero?
] unit-test ] unit-test