Skip to content

Commit

Permalink
Multiplication and area after reviwe
Browse files Browse the repository at this point in the history
  • Loading branch information
majdadel20 committed Jan 11, 2025
1 parent 6512d2b commit 7389c6c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
5 changes: 4 additions & 1 deletion solutions/area_circle.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""
This module provides a function to calculate the area of a circle given its radius.
This module provides a function
to calculate the area of a circle given its radius.
Author :Majd ABUALSOUD
Created :January 11,2025
"""

import math
Expand Down
2 changes: 2 additions & 0 deletions solutions/multiplication.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env python3
# -- coding: utf-8 --
"""
Author :Majd ABUALSOUD
Created :January 11,2025
A module for multiplying two numbers.
Module contents:
- multiply_numbers: Multiplies two numbers and returns the product.
Expand Down
13 changes: 12 additions & 1 deletion solutions/tests/test_area_circle.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
"""
Test suite for the area_of_circle function.
Author :Majd ABUALSOUD
Created :January 11,2025
This test suite for the area_of_circle function
ensures its correctness by covering various scenarios.
It tests the function with positive, zero,
and negative radius values,
ensuring accurate area calculations and proper handling of edge cases.
Additionally, it checks the function's response to large inputs,
such as non-numeric values, to ensure robust error handling.
Each test case includes assertions to verify
the function's reliability across different conditions.
"""

import math
import unittest

from ..area_circle import area_of_circle


Expand Down
3 changes: 3 additions & 0 deletions solutions/tests/test_multiplication.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Author :Majd ABUALSOUD
Created :January 11,2025
Test module for multiply_numbers function.
Test categories:
Expand Down

0 comments on commit 7389c6c

Please sign in to comment.