コード例 #1
0
ファイル: test2.py プロジェクト: d0ivanov/Python-2014-2015
 def test_alphabet_with_bg(self):
     alphabet = solution.alphabet(code='bg')
     first_six = list(islice(alphabet, 6))
     self.assertEqual(first_six, ["а", "б", "в", "г", "д", "е"])
コード例 #2
0
 def test_alphabet(self):
     alphabet = solution.alphabet(code='lat')
     first_five = list(islice(alphabet, 5))
     self.assertEqual(first_five, ['a', 'b', 'c', 'd', 'e'])
コード例 #3
0
ファイル: test2.py プロジェクト: d0ivanov/Python-2014-2015
 def test_alphabet_with_letters(self):
     alphabet = solution.alphabet(
         letters='ⰰⰱⰲⰳⰴⰵⰶⰷⰸⰹⰺⰻⰼⰽⰾⰿⱀⱁⱂⱃⱄⱅⱆⱇⱈⱉⱊⱋⱌⱍⱎⱏⱐⱑⱒⱓⱔⱕⱖⱗⱘⱙⱚⱛⱜⱝⱞ')
     first_five = list(islice(alphabet, 5))
     self.assertEqual(first_five, ['ⰰ', 'ⰱ', 'ⰲ', 'ⰳ', 'ⰴ'])
コード例 #4
0
ファイル: test2.py プロジェクト: d0ivanov/Python-2014-2015
 def test_alphabet(self):
     alphabet = solution.alphabet(code='lat')
     first_five = list(islice(alphabet, 5))
     self.assertEqual(first_five, ['a', 'b', 'c', 'd', 'e'])
コード例 #5
0
ファイル: test2.py プロジェクト: d0ivanov/Python-2014-2015
 def test_alphabet_with_bg(self):
     alphabet = solution.alphabet(code='bg')
     first_six = list(islice(alphabet, 6))
     self.assertEqual(first_six, ["а", "б", "в", "г", "д", "е"])
コード例 #6
0
ファイル: test2.py プロジェクト: d0ivanov/Python-2014-2015
 def test_alphabet_with_letters(self):
     alphabet = solution.alphabet(letters='ⰰⰱⰲⰳⰴⰵⰶⰷⰸⰹⰺⰻⰼⰽⰾⰿⱀⱁⱂⱃⱄⱅⱆⱇⱈⱉⱊⱋⱌⱍⱎⱏⱐⱑⱒⱓⱔⱕⱖⱗⱘⱙⱚⱛⱜⱝⱞ')
     first_five = list(islice(alphabet, 5))
     self.assertEqual(first_five, ['ⰰ', 'ⰱ', 'ⰲ', 'ⰳ', 'ⰴ'])
コード例 #7
0
ファイル: sample_test.py プロジェクト: idivanov/python-fmi
 def test_alphabet1(self):
     alphabet = solution.alphabet(code = "bg", letters = "abcde")
     first_five = list(islice(alphabet, 5))
     self.assertEqual(first_five, ['a', 'b', 'c', 'd', 'e'])