Added test for quat.to_string
This commit is contained in:
parent
f038ce2dc7
commit
ce80e2c90a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user