Skip to content

Commit

Permalink
Update test_script.py
Browse files Browse the repository at this point in the history
  • Loading branch information
madhurimarawat authored Oct 19, 2024
1 parent ddff67b commit 041c2dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test_script.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# test_script_corrected.py
# test_script.py

# Import the functions to be tested from script.py
from script import add, subtract
Expand All @@ -7,10 +7,10 @@
# Function to test the add function
def test_add():
# Check if adding 3 and 2 equals 5
assert add(3, 2) == 5 # Passes if the sum is correct
assert add(3, 2) == 5 # This will pass


# Function to test the subtract function
def test_subtract():
# Check if subtracting 2 from 5 equals 3
assert subtract(5, 2) == 3 # Passes if the result is correct
# Check if subtracting 2 from 5 equals 4
assert subtract(5, 2) == 4 # This will fail

0 comments on commit 041c2dc

Please sign in to comment.