Skip to content

Commit

Permalink
16th commit
Browse files Browse the repository at this point in the history
  • Loading branch information
umairsafdar768 committed Aug 22, 2024
1 parent 25586cf commit 30ad694
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,18 @@ def test_fibonacci_edge_cases():
assert fibonacci(4) == [0, 1, 1, 2]

#from 2nd file
def test_celsius_to_fahrenheit():
assert celsius_to_fahrenheit(0) == 32
assert celsius_to_fahrenheit(100) == 212
assert celsius_to_fahrenheit(-40) == -40
assert round(celsius_to_fahrenheit(37), 2) == 98.60

def test_count_vowels():
assert count_vowels("hello") == 2
assert count_vowels("AEIOU") == 5
assert count_vowels("rhythm") == 0
assert count_vowels("The quick brown fox") == 5
assert count_vowels("") == 0
# def test_celsius_to_fahrenheit():
# assert celsius_to_fahrenheit(0) == 32
# assert celsius_to_fahrenheit(100) == 212
# assert celsius_to_fahrenheit(-40) == -40
# assert round(celsius_to_fahrenheit(37), 2) == 98.60

# def test_count_vowels():
# assert count_vowels("hello") == 2
# assert count_vowels("AEIOU") == 5
# assert count_vowels("rhythm") == 0
# assert count_vowels("The quick brown fox") == 5
# assert count_vowels("") == 0

if __name__ == "__main__":
pytest.main()

0 comments on commit 30ad694

Please sign in to comment.