コード例 #1
0
ファイル: tests.py プロジェクト: Bot123123/codeeval
 def test_absent_letter(self):
     self.assertEqual(search_start_positions(GRID, 'Q'), [])
コード例 #2
0
ファイル: tests.py プロジェクト: Bot123123/codeeval
 def test_more_than_one_possible_positions(self):
     self.assertEqual(search_start_positions(GRID, 'A'), [(0, 0), (2, 0)])
     self.assertEqual(search_start_positions(GRID, 'C'), [(0, 2), (1, 2)])
     self.assertEqual(search_start_positions(GRID, 'E'), [(0, 3), (2, 2), (2, 3)])
コード例 #3
0
ファイル: tests.py プロジェクト: Bot123123/codeeval
 def test_positive(self):
     self.assertEqual(search_start_positions(GRID, 'F'), [(1, 1)])