Diff
Not logged in

Differences From Artifact [45c4aa9e0628516e]:

To Artifact [454c7b7367a1305b]:


630 assert_throw!UnexpectedEOF(parseString(`1+`)); 630 assert_throw!UnexpectedEOF(parseString(`1+`)); 631 assert_throw!ParseException(parseString(`1+2}`)); 631 assert_throw!ParseException(parseString(`1+2}`)); 632 assert_throw!UnexpectedEOF(parseString(`let "x"`)); 632 assert_throw!UnexpectedEOF(parseString(`let "x"`)); 633 assert_throw!UnexpectedEOF(parseString(`var`)); 633 assert_throw!UnexpectedEOF(parseString(`var`)); 634 assert_throw!ParseException(parseString(`@val x ==`)); 634 assert_throw!ParseException(parseString(`@val x ==`)); 635 assert_throw!ParseException(parseString(`if(){1}`)); 635 assert_throw!ParseException(parseString(`if(){1}`)); 636 assert_throw!UnexpectedEOF(parseString(`f(`)); 636 assert_throw!UnexpectedEOF(parseString(`f(`)); > 637 assert_throw!ParseException(parseString(`fun(x y){}`)); 637 } 638 } 638 639 639 unittest 640 unittest 640 { 641 { 641 mixin EasyAST; 642 mixin EasyAST; 642 assert_eq(parseString(`def foo(x) { x+1 }; foo`), 643 assert_eq(parseString(`def foo(x) { x+1 }; foo`), 643 let("foo", "", 644 let("foo", "",