From 3d1c4a2746d22f791fa50ec5d8b593c9c6181f4e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 25 Nov 2016 15:18:28 +0200 Subject: Adjust for literal here-document support in testscript --- unit-tests/lexer/testscript | 52 ++++++++++++++++++++++---------------------- unit-tests/parser/testscript | 4 ++-- 2 files changed, 28 insertions(+), 28 deletions(-) (limited to 'unit-tests') diff --git a/unit-tests/lexer/testscript b/unit-tests/lexer/testscript index fb4f862..48d06ad 100644 --- a/unit-tests/lexer/testscript +++ b/unit-tests/lexer/testscript @@ -58,21 +58,21 @@ EOO : cat <>>test.cli; 'a' -'\\n' -'\\\\' -'\\0' -'\\'' -'\\xaf' -'\\111' +'\n' +'\\' +'\0' +'\'' +'\xaf' +'\111' EOI $* test.cli >>EOO 'a' -'\\n' -'\\\\' -'\\0' -'\\'' -'\\xaf' -'\\111' +'\n' +'\\' +'\0' +'\'' +'\xaf' +'\111' EOO @@ -80,12 +80,12 @@ EOO : cat <>>test.cli; "abc"; -"a\\nb"; -"abc\\\\"; -"aaa\\0"; -"\\""; -"a\\xaf"; -"a\\111"; +"a\nb"; +"abc\\"; +"aaa\0"; +"\""; +"a\xaf"; +"a\111"; "abc""def"; "abc" "def"; "abc @@ -96,17 +96,17 @@ EOI $* test.cli >>EOO "abc" ; -"a\\nb" +"a\nb" ; -"abc\\\\" +"abc\\" ; -"aaa\\0" +"aaa\0" ; -"\\"" +"\"" ; -"a\\xaf" +"a\xaf" ; -"a\\111" +"a\111" ; "abc""def" ; @@ -150,11 +150,11 @@ EOO : 005 : cat <>>test.cli; -\(abc, 123 - 345, 12.34) +(abc, 123 - 345, 12.34) EOI $* test.cli >>EOO -\(abc, 123 - 345, 12.34) +(abc, 123 - 345, 12.34) EOO diff --git a/unit-tests/parser/testscript b/unit-tests/parser/testscript index 0ae0378..08226a5 100644 --- a/unit-tests/parser/testscript +++ b/unit-tests/parser/testscript @@ -164,9 +164,9 @@ class c char -init2 = 'c'; int -init3 = -5; bool -inti4 = true; - long -init5 = \(2 * 4 - 5); + long -init5 = (2 * 4 - 5); type -init6 = type::default_value; - type -init7 \(abc, 2 - 1); + type -init7 (abc, 2 - 1); }; EOI $* test.cli >:"" -- cgit v1.1