Files
jak-project/test/goalc/source_templates/with_game/test-vector-dot.gc
T
water111 dfe129373a fix float loads, add dgo loading to game test (#101)
* fix float loads, add dgo loading to game test

* build and load dgos in order
2020-10-25 20:30:25 -04:00

14 lines
281 B
Common Lisp

(start-test "vector-dot")
(let ((a (new 'global 'vector))
(b (new 'global 'vector)))
(set! (-> a x) 1.)
(set! (-> a y) 2.)
(set! (-> a z) 3.)
(set! (-> b x) 2.)
(set! (-> b y) 3.)
(set! (-> b z) 4.)
(expect-true (= 20.0 (vector-dot-vu a b)))
)
(finish-test)