From: Wolfgang (Blub) Bumiller Date: Mon, 29 Oct 2012 13:36:05 +0000 (+0100) Subject: di/trigraph testcase X-Git-Tag: 0.1-rc1~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=aff3cbbaa8b10abf938c7d2bb2e330ab85bf7ef4;p=xonotic%2Fgmqcc.git di/trigraph testcase --- diff --git a/testsuite/Makefile b/testsuite/Makefile index 910e598..669ba57 100644 --- a/testsuite/Makefile +++ b/testsuite/Makefile @@ -13,7 +13,8 @@ TESTLIST = \ maths2 \ equality \ fields1 \ - invalid-types + invalid-types \ + ngraphs .PHONY: clean test @@ -142,6 +143,11 @@ invalid-types-ok: obj invalid-types/assign.qc invalid-types/op.qc invalid-types/ invalid-types: invalid-types-ok +$(eval $(call maketest,ngraphs,qcc)) +ngraphs: + @$(VM) $< > $@/output + @diff $@/output $@/expected + ####################################################################### obj: mkdir obj diff --git a/testsuite/ngraphs/expected b/testsuite/ngraphs/expected new file mode 100644 index 0000000..81a5e67 --- /dev/null +++ b/testsuite/ngraphs/expected @@ -0,0 +1,2 @@ +#^[]|{}~\ +#^[]|{}~\ diff --git a/testsuite/ngraphs/main.qc b/testsuite/ngraphs/main.qc new file mode 100644 index 0000000..75cbd75 --- /dev/null +++ b/testsuite/ngraphs/main.qc @@ -0,0 +1,6 @@ +void(string, string) print = #1; + +void() main = { + print("??=??'??(??)??!????-??/??/", "??/n"); + print("#^[]|{}~\\", "\n"); +};