コード例 #1
0
 def test_10(self):
     expected = [
         '1',
         '11',
         '21',
         '1211',
         '111221',
         '312211',
         '13112221',
         '1113213211',
         '31131211131221',
         '13211311123113112211',
     ]
     self.assertEqual(look_and_say(10), expected)
コード例 #2
0
ファイル: look_say_test.py プロジェクト: sprogslegs/ttldojos
def test_for_input_2():
    fixture = look_and_say(2)
    assert fixture == '12'
コード例 #3
0
 def test_sample2(self):
     self.assertEqual("21", look_and_say("11"))
コード例 #4
0
ファイル: look_say_test.py プロジェクト: sprogslegs/ttldojos
def test_for_input_1():
    fixture = look_and_say(1)
    assert fixture == '11'
コード例 #5
0
 def test_sample5(self):
     self.assertEqual("312211", look_and_say("111221"))