From b2c0e73e9e37226c79ff641b813cad3c31074c06 Mon Sep 17 00:00:00 2001 From: fdai7764 Date: Fri, 19 Jan 2024 10:23:20 +0100 Subject: [PATCH] refactoring: Changed typo in test file for logarithmic stuff --- ...arithmic_and_expo_and_root_calculations.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/test/py/test_logarithmic_and_expo_and_root_calculations.py diff --git a/src/test/py/test_logarithmic_and_expo_and_root_calculations.py b/src/test/py/test_logarithmic_and_expo_and_root_calculations.py new file mode 100644 index 0000000..2a9594e --- /dev/null +++ b/src/test/py/test_logarithmic_and_expo_and_root_calculations.py @@ -0,0 +1,29 @@ +import unittest +from src.main.py.logarithmic_and_expo_and_root_calculations import * + + +class primitive_calculations(unittest.TestCase): + def setUp(self): + pass + + def tearDown(self): + pass + + def test_sqrt_of_4_equals_2(self): + self.assertEqual(sqrt(4), 2) + + def test_2_potentiate_3_equals_8(self): + self.assertEqual(potentiate(2, 3), 8) + + def test_4_log_2_equals_2(self): + self.assertEqual(logarithmize(4, 2), 2) + + def test_4_ld_equals_2(self): + self.assertEqual(logarithmize_dualis(4), 2) + + def test_10_log10_equals_1(self): + self.assertEqual(logarithmize_base_10(10), 1) + + +if __name__ == "__main__": + unittest.main()