Advertisement
wprins

3 Tests for FizzBuzz

May 20th, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. def test_fizzbuzz():
  2.     #http://pytest.org/latest/getting-started.html#getstarted
  3.     assert(fizzbuzz(3, 5, 10) == '1 2 F 4 B F 7 8 F B')
  4.     assert(fizzbuzz(2, 7, 15) == '1 F 3 F 5 F B F 9 F 11 F 13 FB 15')
  5.     assert(fizzbuzz(6, 6, 12) == '1 2 3 4 5 FB 7 8 9 10 11 FB')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement