]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
utf8 tests
authorWolfgang Bumiller <blub@speed.at>
Sat, 22 Dec 2012 21:46:42 +0000 (22:46 +0100)
committerWolfgang Bumiller <blub@speed.at>
Sun, 23 Dec 2012 09:23:42 +0000 (10:23 +0100)
tests/utf8-2.tmpl [new file with mode: 0644]
tests/utf8.qc [new file with mode: 0644]
tests/utf8.tmpl [new file with mode: 0644]

diff --git a/tests/utf8-2.tmpl b/tests/utf8-2.tmpl
new file mode 100644 (file)
index 0000000..ab203fa
--- /dev/null
@@ -0,0 +1,6 @@
+I: utf8.qc
+D: utf8
+T: -execute
+C: -std=fteqcc -futf8
+M: Sum: ∑ ∑ ∑
+M: Okay
diff --git a/tests/utf8.qc b/tests/utf8.qc
new file mode 100644 (file)
index 0000000..4ca0348
--- /dev/null
@@ -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");
+
+}
diff --git a/tests/utf8.tmpl b/tests/utf8.tmpl
new file mode 100644 (file)
index 0000000..41802c9
--- /dev/null
@@ -0,0 +1,4 @@
+I: utf8.qc
+D: trying to compile utf8 codes without -futf8
+T: -fail
+C: -std=fteqcc