Skip to content

Commit

Permalink
More dxf spline tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-urbanczyk committed Jul 17, 2020
1 parent 88092b2 commit 6d6da05
Show file tree
Hide file tree
Showing 3 changed files with 4,167 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_importers.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,19 @@ def testImportDXF(self):
self.assertEqual(obj.faces().size(), 1)
self.assertEqual(obj.wires().size(), 2)

# test rational spline import
filename = os.path.join(testdataDir, "rational_spline.dxf")
obj = importers.importDXF(filename)
self.assertTrue(obj.val().isValid())
self.assertEqual(obj.faces().size(), 1)
self.assertEqual(obj.edges().size(), 1)

# importing of a complex shape exported from Inkscape
filename = os.path.join(testdataDir, "genshi.dxf")
obj = importers.importDXF(filename)
self.assertTrue(obj.val().isValid())
self.assertEqual(obj.faces().size(), 1)


if __name__ == "__main__":
import unittest
Expand Down
Loading

0 comments on commit 6d6da05

Please sign in to comment.