Files
jak-project/test/goalc/source_templates/with_game/test-vector-dot.gc
T
water111 e01e065170 [gcommon decomp] compiler and decompiler fixes (#239)
* wip

* decompile file-io

* a

* fix
2021-02-07 18:21:00 -05:00

16 lines
299 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.)
(.nop)
(nop!)
(expect-true (= 20.0 (vector-dot-vu a b)))
)
(finish-test)