Skip to content

Commit

Permalink
handle stricter tolerance of Vector3d for equality in Draft unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jan 23, 2017
1 parent 654da13 commit 417f074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Draft/TestDraft.py
Expand Up @@ -124,7 +124,7 @@ def testRotate(self):
FreeCAD.Console.PrintLog ('Checking Draft Rotate...\n')
l = Draft.makeLine(FreeCAD.Vector(2,0,0),FreeCAD.Vector(4,0,0))
Draft.rotate(l,90)
self.failUnless(l.Start == FreeCAD.Vector(0,2,0),"Draft Rotate failed")
self.assertTrue(l.Start.isEqual(FreeCAD.Vector(0,2,0), 1e-12),"Draft Rotate failed")

def testOffset(self):
FreeCAD.Console.PrintLog ('Checking Draft Offset...\n')
Expand Down

0 comments on commit 417f074

Please sign in to comment.