mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Fix the first startup test.
This commit is contained in:
parent
d588ced9dd
commit
7c6f29466f
@ -317,7 +317,7 @@ static void readEvalPrint(FILE *in, World &world)
|
||||
|
||||
char * tests[] = {
|
||||
#ifdef NEW_PARSER
|
||||
"function f(a,b,|'x' 'y' c=0) { return a+b+c; } print(f(1,2,3), 'should be 6'); return;",
|
||||
"function f(a,b,|'x' 'y' c=0) { return a+b+c; } print(f(1,2,x:3), 'should be 6'); return;",
|
||||
#endif
|
||||
"function fact(n) { if (n > 1) return n * fact(n-1); else return 1; } print(fact(6), \" should be 720\"); return;" ,
|
||||
"a = { f1: 1, f2: 2}; print(a.f2++, \" should be 2\"); print(a.f2 <<= 1, \" should be 6\"); return;" ,
|
||||
|
@ -317,7 +317,7 @@ static void readEvalPrint(FILE *in, World &world)
|
||||
|
||||
char * tests[] = {
|
||||
#ifdef NEW_PARSER
|
||||
"function f(a,b,|'x' 'y' c=0) { return a+b+c; } print(f(1,2,3), 'should be 6'); return;",
|
||||
"function f(a,b,|'x' 'y' c=0) { return a+b+c; } print(f(1,2,x:3), 'should be 6'); return;",
|
||||
#endif
|
||||
"function fact(n) { if (n > 1) return n * fact(n-1); else return 1; } print(fact(6), \" should be 720\"); return;" ,
|
||||
"a = { f1: 1, f2: 2}; print(a.f2++, \" should be 2\"); print(a.f2 <<= 1, \" should be 6\"); return;" ,
|
||||
|
Loading…
Reference in New Issue
Block a user