Skip to content

Commit

Permalink
address requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedKhalifa7 authored Jan 13, 2025
1 parent fe23498 commit 05cf757
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion solutions/tests/test_calculate_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ def test_positive_float_side(self):
"""
self.assertEqual(calculate_square_area(2.5), 6.25)

def test_very_small_float_side(self):
"""
Test the function with a very small float side length.
"""
self.assertEqual(calculate_square_area(0.00000005), 0.0000000000000025)

def test_large_side(self):
"""
Test the function with a very large side length.
Expand Down Expand Up @@ -55,5 +61,5 @@ def test_non_numeric_side(self):
Test the function with a non-numeric side length.
This should raise a ValueError.
"""
with pytest.raises(ValueError):
with self.assertRaises(ValueError):
calculate_square_area("invalid")

0 comments on commit 05cf757

Please sign in to comment.