diff --git a/tests/test.nim b/tests/test.nim index d2b7d5a..2d2c0bc 100644 --- a/tests/test.nim +++ b/tests/test.nim @@ -591,11 +591,20 @@ block: 0.0, 0.0, 0.0, 1.0 ) - doAssert translate(vec2(1, 2)).pos == vec2(1, 2) - var translation = translate(vec2(1, 2)) - translation.pos = vec2(3, 4) - doAssert translation.pos == vec2(3, 4) + block: + doAssert translate(vec2(1, 2)).pos == vec2(1, 2) + + var translation = translate(vec2(1, 2)) + translation.pos = vec2(3, 4) + doAssert translation.pos == vec2(3, 4) + + block: + doAssert translate(vec3(1, 2, 3)).pos == vec3(1, 2, 3) + + var translation = translate(vec3(1, 2, 3)) + translation.pos = vec3(3, 4, 5) + doAssert translation.pos == vec3(3, 4, 5) block: # Test basic vector mat4 and quat.