One new test.
import codewars_test as test from solution import simon_says @test.describe("Example") def test_group(): @test.it("test case 1: Simon says") def test_case(): test.assert_equals(simon_says('simon says, "The first rule of Fight Club is you do not talk about Fight Club."'), "The first rule of Fight Club is you do not talk about Fight Club.") test.assert_equals(simon_says('Simon Says, "eat, sleep, code, repeat"'), "eat, sleep, code, repeat") test.assert_equals(simon_says('SImoN SAYS, "practice python"'), "practice python") test.assert_equals(simon_says('sIMON says "type faster"'), "type faster") test.assert_equals(simon_says('Simon Says, ""'), "") test.assert_equals(simon_says('SImOn sAys, do your homework.'), "do your homework.") test.assert_equals(simon_says('SIMON SAYS obey the Zen of Python!'), "obey the Zen of Python!") test.assert_equals(simon_says('SIMON SAYS obey the Zen of Python!'), "obey the Zen of Python!") test.assert_equals(simon_says('SIMON SAYS,that python is slow'), "that python is slow") @test.it("test case 2: Simon didn't say") def test_case(): test.assert_equals(simon_says('seraph said, "The second rule of Fight Club is you do not talk about Fight Club." "'), 'You didn\'t say, "Simon says"!') test.assert_equals(simon_says('I said, "coffee makes code"'), 'You didn\'t say, "Simon says"!') test.assert_equals(simon_says('Simon say, "practice makes perfect"'), 'You didn\'t say, "Simon says"!') test.assert_equals(simon_says('Simon sayss, "gotcha!!"'), 'You didn\'t say, "Simon says"!') test.assert_equals(simon_says('Simon s ay, "jump high!"'), 'You didn\'t say, "Simon says"!') test.assert_equals(simon_says('.simon says, "take a break"'), 'You didn\'t say, "Simon says"!')
- import codewars_test as test
- from solution import simon_says
- @test.describe("Example")
- def test_group():
- @test.it("test case 1: Simon says")
- def test_case():
- test.assert_equals(simon_says('simon says, "The first rule of Fight Club is you do not talk about Fight Club."'), "The first rule of Fight Club is you do not talk about Fight Club.")
- test.assert_equals(simon_says('Simon Says, "eat, sleep, code, repeat"'), "eat, sleep, code, repeat")
- test.assert_equals(simon_says('SImoN SAYS, "practice python"'), "practice python")
- test.assert_equals(simon_says('sIMON says "type faster"'), "type faster")
- test.assert_equals(simon_says('Simon Says, ""'), "")
- test.assert_equals(simon_says('SImOn sAys, do your homework.'), "do your homework.")
- test.assert_equals(simon_says('SIMON SAYS obey the Zen of Python!'), "obey the Zen of Python!")
- test.assert_equals(simon_says('SIMON SAYS obey the Zen of Python!'), "obey the Zen of Python!")
- test.assert_equals(simon_says('SIMON SAYS,that python is slow'), "that python is slow")
- @test.it("test case 2: Simon didn't say")
- def test_case():
- test.assert_equals(simon_says('seraph said, "The second rule of Fight Club is you do not talk about Fight Club." "'), 'You didn\'t say, "Simon says"!')
- test.assert_equals(simon_says('I said, "coffee makes code"'), 'You didn\'t say, "Simon says"!')
- test.assert_equals(simon_says('Simon say, "practice makes perfect"'), 'You didn\'t say, "Simon says"!')
- test.assert_equals(simon_says('Simon sayss, "gotcha!!"'), 'You didn\'t say, "Simon says"!')
- test.assert_equals(simon_says('Simon s ay, "jump high!"'), 'You didn\'t say, "Simon says"!')
test.assert_equals(simon_says('.simon says, "take a break"'), 'You didn\'t say, "Simon says"!')- test.assert_equals(simon_says('.simon says, "take a break"'), 'You didn\'t say, "Simon says"!')