]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
tests: add check for vector negation
authorWolfgang Bumiller <wry.git@bumiller.com>
Thu, 22 Jun 2017 06:45:38 +0000 (08:45 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Thu, 22 Jun 2017 06:45:38 +0000 (08:45 +0200)
tests/vecmath.qc [new file with mode: 0644]
tests/vecmath.tmpl [new file with mode: 0644]

diff --git a/tests/vecmath.qc b/tests/vecmath.qc
new file mode 100644 (file)
index 0000000..5a656bf
--- /dev/null
@@ -0,0 +1,5 @@
+void main(vector vin) {
+       stov("'15 43 0'"); // set OFS_RETURN
+       vector v2 = -vin;
+       print(vtos(v2), "\n");
+}
diff --git a/tests/vecmath.tmpl b/tests/vecmath.tmpl
new file mode 100644 (file)
index 0000000..8bcea3a
--- /dev/null
@@ -0,0 +1,6 @@
+I: vecmath.qc
+D: previously problematic vector math
+T: -execute
+C: -std=gmqcc -fftepp
+E: -vector '5 5 5'
+M: '-5 -5 -5'