Added test for quat.to_string

This commit is contained in:
karai17 2016-07-24 10:53:57 -03:00
parent f038ce2dc7
commit ce80e2c90a

View File

@ -299,4 +299,10 @@ describe("quat:", function()
assert.is.equal(2, axis.y)
assert.is.equal(3, axis.z)
end)
it("gets a string representation of a quaternion", function()
local a = quat()
local b = a:to_string()
assert.is.equal("(+0.000,+0.000,+0.000,+1.000)", b)
end)
end)