diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 1978d38..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/src/.DS_Store b/src/.DS_Store deleted file mode 100644 index 694e5a6..0000000 Binary files a/src/.DS_Store and /dev/null differ diff --git a/src/oxrse_unit_conv/units.py b/src/oxrse_unit_conv/units.py index 21a95b2..881af78 100644 --- a/src/oxrse_unit_conv/units.py +++ b/src/oxrse_unit_conv/units.py @@ -14,20 +14,12 @@ mile = Unit(name='mile', abbr='mile', si=meter, to_si_fun=lambda n: n * 1_609.344) -milimeter = Unit(name='milimeters', abbr='mm', si=meter, to_si_fun=lambda n: n / 1000) - # meter_sq - # meter_cu # kilogram -# stone - -stone = Unit(name='stone', abbr='st', si=kilogram, to_si_fun=lambda n: n * 0.157473) -st = stone - pound = Unit(name='pound', abbr='lb', si=kilogram, to_si_fun=lambda n: n * 0.4535924) lb = pound @@ -38,4 +30,3 @@ # mole # candela -sparkle = Unit(name='sparkle', abbr='sp', si=candela, to_si_fun=lambda n: n * 5) diff --git a/src/tests/test_unit_mm.py b/src/tests/test_unit_mm.py deleted file mode 100644 index cd6b930..0000000 --- a/src/tests/test_unit_mm.py +++ /dev/null @@ -1,15 +0,0 @@ -import unittest -from oxrse_unit_conv.units import milimeter, m - - -class TestMilimeter(unittest.TestCase): - def test_SI(self): - self.assertTrue(milimeter.si_unit.matches(m)) - - def test_basic_conversion(self): - self.assertEqual(milimeter.to_si(100), 0.1) - self.assertEqual(milimeter.to_unit(10, m), 0.01, 8) - - -if __name__ == '__main__': - unittest.main() diff --git a/src/tests/test_unit_sparkle.py b/src/tests/test_unit_sparkle.py deleted file mode 100644 index 3c32c33..0000000 --- a/src/tests/test_unit_sparkle.py +++ /dev/null @@ -1,17 +0,0 @@ -import unittest -from oxrse_unit_conv.units import sparkle, candela - - -class TestSparkle(unittest.TestCase): - def test_SI(self): - self.assertTrue(sparkle.si_unit.matches(candela)) - - def test_to_si(self): - self.assertEqual(sparkle.to_si(1), 5) - - def test_from_si(self): - self.assertEqual(candela.to_unit(5, sparkle), 1) - - -if __name__ == '__main__': - unittest.main() diff --git a/src/tests/test_unit_st.py b/src/tests/test_unit_st.py deleted file mode 100644 index d86cafc..0000000 --- a/src/tests/test_unit_st.py +++ /dev/null @@ -1,16 +0,0 @@ -import unittest -from oxrse_unit_conv.units import kg, st - -class TestStone(unittest.TestCase): - def test_SI(self): - self.assertTrue(st.si_unit.matches(kg)) - - def test_conversion(self): - self.assertEqual(st.to_si(1), 0.157473) - self.assertAlmostEquals(st.to_unit(10, st),10, 6) - -if __name__ == '_main_': - unittest.main() - - -