summaryrefslogtreecommitdiffstats
path: root/libdimension-python/tests/geometry.py
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-09-22 19:06:57 -0400
committerTavian Barnes <tavianator@gmail.com>2011-09-22 19:06:57 -0400
commit5f46020e7090e28495d2b7e66e58f2c74698917a (patch)
treea2f5cfba9aa25024e176e8f05274e80a09aef4e4 /libdimension-python/tests/geometry.py
parenta09085f36ac82886ba768ab141361c2e94c6ff5e (diff)
downloaddimension-5f46020e7090e28495d2b7e66e58f2c74698917a.tar.xz
Use double rather than single quotes for Python strings.
Diffstat (limited to 'libdimension-python/tests/geometry.py')
-rwxr-xr-xlibdimension-python/tests/geometry.py18
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,