コード例 #1
0
ファイル: Split_test.py プロジェクト: TopRamenGod/echomesh
 def test_split_empty(self):
     self.assertEqual(split_words(''), [])
コード例 #2
0
ファイル: Split_test.py プロジェクト: TopRamenGod/echomesh
 def test_pair_split_two_pair(self):
     self.assertEqual(pair_split(split_words('hello  hell as dogs cats')),
                      [('hello', 'dogs'), ('hell', 'cats')])
コード例 #3
0
ファイル: Split_test.py プロジェクト: TopRamenGod/echomesh
 def test_split_simple(self):
     self.assertEqual(split_words('hello, there!'), ['hello,', 'there!'])
コード例 #4
0
ファイル: Split_test.py プロジェクト: TopRamenGod/echomesh
 def test_pair_split_two(self):
     self.assertEqual(pair_split(split_words('hello as hell')),
                      [('hello', 'hell')])
コード例 #5
0
ファイル: Split_test.py プロジェクト: TopRamenGod/echomesh
 def test_pair_split_three(self):
     self.assertEqual(pair_split(split_words('hello as hell dogs as cats')),
                      [('hello', 'hell'), ('dogs', 'cats')])
コード例 #6
0
ファイル: Split_test.py プロジェクト: TopRamenGod/echomesh
 def test_split_two_spaces(self):
     self.assertEqual(split_words(' one two '), ['one', 'two'])
コード例 #7
0
ファイル: Split_test.py プロジェクト: TopRamenGod/echomesh
 def test_pair_split_one(self):
     self.assertEqual(pair_split(split_words('hello')), [('hello', None)])
コード例 #8
0
 def test_split_simple(self):
     self.assertEqual(split_words('hello, there!'), ['hello,', 'there!'])
コード例 #9
0
ファイル: Split_test.py プロジェクト: TopRamenGod/echomesh
 def test_split_one(self):
     self.assertEqual(split_words('one'), ['one'])
コード例 #10
0
 def test_pair_split_three(self):
     self.assertEqual(pair_split(split_words('hello as hell dogs as cats')),
                      [('hello', 'hell'), ('dogs', 'cats')])
コード例 #11
0
 def test_pair_split_two_pair(self):
     self.assertEqual(pair_split(split_words('hello  hell as dogs cats')),
                      [('hello', 'dogs'), ('hell', 'cats')])
コード例 #12
0
 def test_pair_split_two(self):
     self.assertEqual(pair_split(split_words('hello as hell')),
                      [('hello', 'hell')])
コード例 #13
0
 def test_pair_split_one(self):
     self.assertEqual(pair_split(split_words('hello')), [('hello', None)])
コード例 #14
0
 def test_split_two_spaces(self):
     self.assertEqual(split_words(' one two '), ['one', 'two'])
コード例 #15
0
 def test_split_one(self):
     self.assertEqual(split_words('one'), ['one'])
コード例 #16
0
 def test_split_empty(self):
     self.assertEqual(split_words(''), [])