mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-21 10:51:10 +00:00
tests: add check for vector negation
This commit is contained in:
parent
eb2d478770
commit
163c4b99a4
2 changed files with 11 additions and 0 deletions
5
tests/vecmath.qc
Normal file
5
tests/vecmath.qc
Normal 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
6
tests/vecmath.tmpl
Normal 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'
|
Loading…
Reference in a new issue