From dbcf2f0272daf130ed8fc8c4cd09815b21f13eaf Mon Sep 17 00:00:00 2001 From: hrocho Date: Wed, 11 Oct 2017 00:30:22 +0200 Subject: [PATCH] added test --- tests/test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test.py b/tests/test.py index e42b6df..34e20c7 100644 --- a/tests/test.py +++ b/tests/test.py @@ -75,6 +75,11 @@ class TestStructures(unittest.TestCase): self.assertAlmostEqual(m2.molar_mass(),18,1) self.assertAlmostEqual(m2.density(),1.0,1) + m3 = catima.get_material(301) + self.assertEqual(m3.ncomponents(),0) + self.assertAlmostEqual(m3.molar_mass(),0,1) + self.assertAlmostEqual(m3.density(),0.0,1) + def test_layers(self): graphite = catima.get_material(6) graphite.thickness(0.5)