Fix the first startup test.

This commit is contained in:
jeff.dyer%compilercompany.com 2000-11-08 21:05:58 +00:00
parent d588ced9dd
commit 7c6f29466f
2 changed files with 2 additions and 2 deletions

View File

@ -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;" ,

View File

@ -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;" ,