]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - data/test.qs
Dump old tests, test suite will take over .. It isn't activly used, just killing...
[xonotic/gmqcc.git] / data / test.qs
index 5420d75aa8fc1e1ec2338de74214b2b8efb26ac2..6ebdf2a32a24360f98c68b7b82130e93e285570e 100644 (file)
@@ -82,9 +82,22 @@ FUNCTION: pow,            $97
 FUNCTION: findfloat,      $98
 FUNCTION: checkextension, $99
 
-; constants test
-VECTOR: dude1, -1,  +2, 38865.444
-FUNCTION: foo #8
-       MUL_F dude1, dude1, dude1
-       CALL1 print, dude1
+FUNCTION: test     #0
+       FLOAT: x, 100
+       FLOAT: y, 200
 
+       FLOAT: r_mul
+       FLOAT: r_div
+       FLOAT: r_add
+       FLOAT: r_sub
+
+       MUL_V x,y,r_mul
+       DIV_V x,y,r_div
+       ADD_V x,y,r_add
+       SUV_V x,y,r_sub
+
+       STORE_V r_mul
+       CALL0   dprint
+
+       STORE_V
+END