tests: add check for vector negation

This commit is contained in:
Wolfgang Bumiller 2017-06-22 08:45:38 +02:00
parent eb2d478770
commit 163c4b99a4
2 changed files with 11 additions and 0 deletions

5
tests/vecmath.qc Normal file
View file

@ -0,0 +1,5 @@
void main(vector vin) {
stov("'15 43 0'"); // set OFS_RETURN
vector v2 = -vin;
print(vtos(v2), "\n");
}

6
tests/vecmath.tmpl Normal file
View file

@ -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'