@joeposaurus@chaos.social
Nordic Testing Days
def test_fizzbuzz_1():
assert fizzbuzz(1) == "1"
def fizzbuzz(length):
return ""
def test_fizzbuzz_1():
assert fizzbuzz(1) == "1"
def fizzbuzz(length):
return "1"
def test_fizzbuzz_1():
assert fizzbuzz(1) == "1"
def fizzbuzz(length):
return "1"
def test_fizzbuzz_1():
assert fizzbuzz(1) == "1"
def test_fizzbuzz_2():
assert fizzbuzz(2) == "1, 2"
def fizzbuzz(length):
return "1"
def test_fizzbuzz_1():
assert fizzbuzz(1) == "1"
def test_fizzbuzz_2():
assert fizzbuzz(2) == "1, 2"
def fizzbuzz(length):
if length == 1:
return "1"
else:
return "1, 2"
def test_fizzbuzz_1():
assert fizzbuzz(1) == "1"
def test_fizzbuzz_2():
assert fizzbuzz(2) == "1, 2"
def fizzbuzz(length):
if length == 1:
return "1"
else:
return "1, 2"
# other tests ommitted from slide
def test_fizzbuzz_3():
assert fizzbuzz(3) == "1, 2, Fizz"
def fizzbuzz(length):
if length == 1:
return "1"
else:
return "1, 2"