Skip to content
Snippets Groups Projects
Commit 7c3a0b48 authored by ojs1g14's avatar ojs1g14
Browse files

add trim test

parent dc3e5f51
No related branches found
No related tags found
No related merge requests found
Pipeline #345 failed
...@@ -40,5 +40,14 @@ class TestBasicFunction(unittest.TestCase): ...@@ -40,5 +40,14 @@ class TestBasicFunction(unittest.TestCase):
Amp.rotateAng(7) Amp.rotateAng(7)
Amp.rotateAng({}) Amp.rotateAng({})
def test_trim(self):
# a new test for the trim module
stlPath = os.path.abspath(os.getcwd()) + "\\tests\\sample_stl_sphere_BIN.stl"
from AmpScan.core import AmpObject
Amp = AmpObject(stlPath)
with self.assertRaises(TypeError):
Amp.planarTrim([], [])
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment