Skip to content

Commit 4581a56

Browse files
authored
Update test_solidpython.py
Added test for `resize()`
1 parent 4b5a034 commit 4581a56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

solid/test/test_solidpython.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
{'name': 'scale', 'kwargs': {'v': 0.5}, 'expected': '\n\nscale(v = 0.5000000000);', 'args': {}, },
2828
{'name': 'rotate', 'kwargs': {'a': 45, 'v': [0, 0, 1]}, 'expected': '\n\nrotate(a = 45, v = [0, 0, 1]);', 'args': {}, },
2929
{'name': 'mirror', 'kwargs': {}, 'expected': '\n\nmirror(v = [0, 0, 1]);', 'args': {'v': [0, 0, 1]}, },
30+
{'name': 'resize', 'kwargs': {'newsize':[5,5,5], 'auto':[True, True, False]}, 'expected': '\n\nresize(auto = [true, true, false], newsize = [5, 5, 5]);', 'args': {}, },
3031
{'name': 'multmatrix', 'kwargs': {}, 'expected': '\n\nmultmatrix(m = [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]);', 'args': {'m': [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]}, },
3132
{'name': 'color', 'kwargs': {}, 'expected': '\n\ncolor(c = [1, 0, 0]);', 'args': {'c': [1, 0, 0]}, },
3233
{'name': 'minkowski', 'kwargs': {}, 'expected': '\n\nminkowski();', 'args': {}, },
@@ -202,7 +203,7 @@ def test_separate_part_hole(self):
202203
# Make two parts, a block with hole, and a cylinder that
203204
# fits inside it. Make them separate parts, meaning
204205
# holes will be defined at the level of the part_root node,
205-
# not the overall node. This allows us to preserve holes as
206+
# not the overall node. This allows us to perve holes as
206207
# first class space, but then to actually fill them in with
207208
# the parts intended to fit in them.
208209
b = cube(10, center=True)

0 commit comments

Comments
 (0)