From: Wolfgang Bumiller Date: Thu, 22 Jun 2017 06:45:38 +0000 (+0200) Subject: tests: add check for vector negation X-Git-Tag: xonotic-v0.8.5~37 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=163c4b99a4bef8746fc9d3caa8dc6c54c11d4955;ds=sidebyside tests: add check for vector negation --- diff --git a/tests/vecmath.qc b/tests/vecmath.qc new file mode 100644 index 0000000..5a656bf --- /dev/null +++ b/tests/vecmath.qc @@ -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 index 0000000..8bcea3a --- /dev/null +++ b/tests/vecmath.tmpl @@ -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'