utf8 tests

This commit is contained in:
Wolfgang Bumiller 2012-12-22 22:46:42 +01:00
parent 2164afb8cf
commit 041f8a86d7
3 changed files with 23 additions and 0 deletions

6
tests/utf8-2.tmpl Normal file
View file

@ -0,0 +1,6 @@
I: utf8.qc
D: utf8
T: -execute
C: -std=fteqcc -futf8
M: Sum: ∑ ∑ ∑
M: Okay

13
tests/utf8.qc Normal file
View file

@ -0,0 +1,13 @@
void print(...) = #1;
string ftos (float) = #2;
void main() {
print("Sum: \{x2211} ");
print("\{8721} ");
print("\n");
if ('\{x2211}' != '\{8721}' || '\{x2211}' != '')
print("Fail!\n");
else
print("Okay\n");
}

4
tests/utf8.tmpl Normal file
View file

@ -0,0 +1,4 @@
I: utf8.qc
D: trying to compile utf8 codes without -futf8
T: -fail
C: -std=fteqcc