diff --git a/src/main/py/read_math_function.py b/src/main/py/read_math_function.py new file mode 100644 index 0000000..113c740 --- /dev/null +++ b/src/main/py/read_math_function.py @@ -0,0 +1,3 @@ +def read_constant(type, value): + result = value + return result \ No newline at end of file diff --git a/src/test/py/test_read_math_function.py b/src/test/py/test_read_math_function.py new file mode 100644 index 0000000..b17343d --- /dev/null +++ b/src/test/py/test_read_math_function.py @@ -0,0 +1,10 @@ +import unittest +from src.main.py.read_math_function import * + + +class read_function(unittest.TestCase): + def test_constant_without_calculation(self): + self.assertEqual(read_constant("c", 42), 42) + +if __name__ == '__main__': + unittest.main()