mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-21 02:40:56 +00:00
di/trigraph testcase
This commit is contained in:
parent
bd739528ad
commit
aff3cbbaa8
3 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
|
2
testsuite/ngraphs/expected
Normal file
2
testsuite/ngraphs/expected
Normal file
|
@ -0,0 +1,2 @@
|
|||
#^[]|{}~\
|
||||
#^[]|{}~\
|
6
testsuite/ngraphs/main.qc
Normal file
6
testsuite/ngraphs/main.qc
Normal file
|
@ -0,0 +1,6 @@
|
|||
void(string, string) print = #1;
|
||||
|
||||
void() main = {
|
||||
print("??=??'??(??)??!??<??>??-??/??/", "??/n");
|
||||
print("#^[]|{}~\\", "\n");
|
||||
};
|
Loading…
Reference in a new issue