diff --git a/src/functions/calculate_square.py b/src/functions/calculate_square.py new file mode 100644 index 00000000..fefba796 --- /dev/null +++ b/src/functions/calculate_square.py @@ -0,0 +1,11 @@ +def calculate_square(number): + square= number*number + return square +# Test Case: +def test_calculate_square(): + assert calculate_square(0)==0 + assert calculate_square(1)==1 + assert calculate_square(2)==4 + print("All test cases passed") + +test_calculate_square() \ No newline at end of file