From c5e91d1df72982d72639a1e875b87f6b95ee1d9c Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Tue, 20 Jun 2017 00:03:59 -0700 Subject: [PATCH] Fixed tag unit tests --- src/Mod/Path/PathTests/TestPathDressupHoldingTags.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Mod/Path/PathTests/TestPathDressupHoldingTags.py b/src/Mod/Path/PathTests/TestPathDressupHoldingTags.py index f511124a4e..b0b6e5b413 100644 --- a/src/Mod/Path/PathTests/TestPathDressupHoldingTags.py +++ b/src/Mod/Path/PathTests/TestPathDressupHoldingTags.py @@ -38,13 +38,13 @@ class TestHoldingTags(PathTestBase): def test00(self): """Check Tag origin.""" - tag = Tag(77, 13, 4, 5, 90, True) + tag = Tag(0, 77, 13, 4, 5, 90, True) self.assertCoincide(tag.originAt(3), Vector(77, 13, 3)) def test01(self): """Verify solid for a 90 degree tag is a cylinder.""" - tag = Tag(100, 200, 4, 5, 90, 0, True) + tag = Tag(0, 100, 200, 4, 5, 90, 0, True) tag.createSolidsAt(17, 0) self.assertIsNotNone(tag.solid) @@ -52,7 +52,7 @@ class TestHoldingTags(PathTestBase): def test02(self): """Verify trapezoidal tag has a cone shape with a lid.""" - tag = Tag(0, 0, 18, 5, 45, 0, True) + tag = Tag(0, 0, 0, 18, 5, 45, 0, True) tag.createSolidsAt(0, 0) self.assertIsNotNone(tag.solid) @@ -60,7 +60,7 @@ class TestHoldingTags(PathTestBase): def test03(self): """Verify pointy cone shape of tag with pointy end if width, angle and height match up.""" - tag = Tag(0, 0, 10, 5, 45, 0, True) + tag = Tag(0, 0, 0, 10, 5, 45, 0, True) tag.createSolidsAt(0, 0) self.assertIsNotNone(tag.solid) h = 5 * 1.01 @@ -68,7 +68,7 @@ class TestHoldingTags(PathTestBase): def test04(self): """Verify height adjustment if tag isn't wide eough for angle.""" - tag = Tag(0, 0, 5, 17, 60, 0, True) + tag = Tag(0, 0, 0, 5, 17, 60, 0, True) tag.createSolidsAt(0, 0) self.assertIsNotNone(tag.solid) h = 2.5 * math.tan((60/180.0)*math.pi) * 1.01