diff options
Diffstat (limited to 'libdimension-python/tests/geometry.py')
-rwxr-xr-x | libdimension-python/tests/geometry.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libdimension-python/tests/geometry.py b/libdimension-python/tests/geometry.py index cf9cb41..dddd4ea 100755 --- a/libdimension-python/tests/geometry.py +++ b/libdimension-python/tests/geometry.py @@ -37,8 +37,8 @@ v = Vector(1.5, 2.5, 3.5) assert v.x == 1.5, v.x assert v.y == 2.5, v.y assert v.z == 3.5, v.z -assert repr(v) == 'dimension.Vector(1.5, 2.5, 3.5)', repr(v) -assert str(v) == '<1.5, 2.5, 3.5>', str(v) +assert repr(v) == "dimension.Vector(1.5, 2.5, 3.5)", repr(v) +assert str(v) == "<1.5, 2.5, 3.5>", str(v) v = Vector(x = 2, y = 3, z = 6) @@ -58,13 +58,13 @@ m = Matrix(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) -assert repr(m) == 'dimension.Matrix(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, \ -9.0, 10.0, 11.0, 12.0)', repr(m) -assert str(m) == '\n' \ - '[1.0\t2.0\t3.0\t4.0]\n' \ - '[5.0\t6.0\t7.0\t8.0]\n' \ - '[9.0\t10.0\t11.0\t12.0]\n' \ - '[0.0\t0.0\t0.0\t1.0]', str(m) +assert repr(m) == "dimension.Matrix(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, \ +9.0, 10.0, 11.0, 12.0)", repr(m) +assert str(m) == "\n" \ + "[1.0\t2.0\t3.0\t4.0]\n" \ + "[5.0\t6.0\t7.0\t8.0]\n" \ + "[9.0\t10.0\t11.0\t12.0]\n" \ + "[0.0\t0.0\t0.0\t1.0]", str(m) s = scale(0.5) assert s == Matrix(0.5, 0, 0, 0, |