From 7c3a0b48fd2c57ed2ac32b138acd3dab7e993798 Mon Sep 17 00:00:00 2001
From: ojs1g14 <ojs1g14@soton.ac.uk>
Date: Fri, 28 Sep 2018 15:16:35 +0100
Subject: [PATCH] add trim test

---
 tests/sample_test.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/sample_test.py b/tests/sample_test.py
index d3be475..1fb8d43 100644
--- a/tests/sample_test.py
+++ b/tests/sample_test.py
@@ -40,5 +40,14 @@ class TestBasicFunction(unittest.TestCase):
             Amp.rotateAng(7)
             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__':
     unittest.main()
-- 
GitLab