Update vec3 division tests

This commit is contained in:
Colby Klein 2015-09-10 20:27:20 -07:00
parent 449bf861d4
commit edbf08005d

View File

@ -21,9 +21,10 @@ describe("vec3:", function()
-- div
assert.is.equal(vec3(1, 1, 1) / 2, vec3(0.5, 0.5, 0.5))
assert.has.errors(function() return vec3(1, 1, 1) / vec3(2, 2, 2) end)
assert.is.equal(vec3(1, 1, 1) / vec3(2, 2, 2), vec3(0.5, 0.5, 0.5))
assert.is.equal(1 / vec3(2, 2, 2), vec3(0.5, 0.5, 0.5))
end)
it("testing value ranges", function()
-- This makes sure we are initializing reasonably and that
-- we haven't broken everything with some FFI magic.