1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
from subject import ratio def test_halves(): result = ratio(2, 4) assert result == 3 def test_floors(): result = ratio(1, 2) assert result == 1 def test_zero(): result = ratio(0, 0) assert result == 0