X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=blobdiff_plain;f=csrc%2Fscanner-tests.mdc;h=d527ed0442fc9c68bbbe2f0e586bfa65409ce2c5;hp=ec34812d0cf9313c847364e7e86805425e786553;hb=850a39a0a761e0af89c15253f075ecd9e9ecc6ee;hpb=86e54542650f7f72a04c70618e07091f905398c8 diff --git a/csrc/scanner-tests.mdc b/csrc/scanner-tests.mdc index ec34812..d527ed0 100644 --- a/csrc/scanner-tests.mdc +++ b/csrc/scanner-tests.mdc @@ -53,12 +53,12 @@ Some simple tests... maybe all tests are simple. Include a special test for numbers, as they are interesting. ###### test list - scanner_tests += "test1,if,then,+,-" - scanner_tests += "test1,if,then,+,-,/" - scanner_tests += "test1,--ignore-indent,if,then,+,-,/" + scanner_tests += "test1,-r,if,then,+,-" + scanner_tests += "test1,-r,if,then,+,-,/" + scanner_tests += "test1,-r,--ignore-indent,if,then,+,-,/" + scanner_tests += "test1,-r,--ignore-indent,--ignore-newline,if,then,+,-,/" scanner_tests += "test1,--ignore-indent,--ignore-newline,if,then,+,-,/" - scanner_tests += "test1,-Cc,--ignore-indent,--ignore-newline,if,then,+,-,/" - scanner_tests += "test1,-CcSz,--ignore-indent,--ignore-newline,if,then,+,-,/" + scanner_tests += "test1,-Sz,--ignore-indent,--ignore-newline,if,then,+,-,/" ###### test: test1 @@ -93,7 +93,7 @@ Include a special test for numbers, as they are interesting. lines */ divident /+ divisor -###### output: test1,if,then,+,- +###### output: test1,-r,if,then,+,- Tokenizing: 2:0 ident(A) 2:2 ident(B) @@ -180,7 +180,7 @@ Include a special test for numbers, as they are interesting. 32:0 newline() 32:0 eof() -###### output: test1,if,then,+,-,/ +###### output: test1,-r,if,then,+,-,/ Tokenizing: 2:0 ident(A) 2:2 ident(B) @@ -268,7 +268,7 @@ Include a special test for numbers, as they are interesting. 32:0 newline() 32:0 eof() -###### output: test1,--ignore-indent,if,then,+,-,/ +###### output: test1,-r,--ignore-indent,if,then,+,-,/ Tokenizing: 2:0 ident(A) 2:2 ident(B) @@ -344,7 +344,7 @@ Include a special test for numbers, as they are interesting. 31:19 newline() 32:0 eof() -###### output: test1,--ignore-indent,--ignore-newline,if,then,+,-,/ +###### output: test1,-r,--ignore-indent,--ignore-newline,if,then,+,-,/ Tokenizing: 2:0 ident(A) 2:2 ident(B) @@ -396,7 +396,7 @@ Include a special test for numbers, as they are interesting. 31:12 ident(divisor) 32:0 eof() -###### output: test1,-Cc,--ignore-indent,--ignore-newline,if,then,+,-,/ +###### output: test1,--ignore-indent,--ignore-newline,if,then,+,-,/ Tokenizing: 2:0 ident(A) 2:2 ident(B) @@ -445,7 +445,7 @@ Include a special test for numbers, as they are interesting. 31:12 ident(divisor) 32:0 eof() -###### output: test1,-CcSz,--ignore-indent,--ignore-newline,if,then,+,-,/ +###### output: test1,-Sz,--ignore-indent,--ignore-newline,if,then,+,-,/ Tokenizing: 2:0 ident(A) 2:2 ident(B) @@ -607,8 +607,8 @@ Now to test for some errors ... though things I thought would be errors sometimes aren't. ###### test list - scanner_tests += "errtest,--ignore-ident,--ignore-mark,-W_,-w_,if,then,+,-" - scanner_tests += "errtest,--ignore-ident,--ignore-mark,-N,if,then,+,-" + scanner_tests += "errtest,-r,--ignore-ident,--ignore-mark,-W_,-w_,if,then,+,-" + scanner_tests += "errtest,-r,--ignore-ident,--ignore-mark,-N,if,then,+,-" ###### test: errtest @@ -626,7 +626,7 @@ sometimes aren't. " \\ \t \n special chars in strings" -###### output: errtest,--ignore-ident,--ignore-mark,-W_,-w_,if,then,+,- +###### output: errtest,-r,--ignore-ident,--ignore-mark,-W_,-w_,if,then,+,- Tokenizing: 2:0 ERROR(multiple) @@ -664,7 +664,7 @@ sometimes aren't. 15:0 newline() 15:0 eof() -###### output: errtest,--ignore-ident,--ignore-mark,-N,if,then,+,- +###### output: errtest,-r,--ignore-ident,--ignore-mark,-N,if,then,+,- Tokenizing: 2:0 ERROR(multiple) 2:9 ERROR(decimal)