コード例 #1
0
 def test_and_join(self):
     self.assertEqual(
         'Korea, Japan, China, and Taiwan',
         sass.and_join(['Korea', 'Japan', 'China', 'Taiwan'])
     )
     self.assertEqual(
         'Korea, and Japan',
         sass.and_join(['Korea', 'Japan'])
     )
     assert 'Korea' == sass.and_join(['Korea'])
     assert '' == sass.and_join([])
コード例 #2
0
 def test_and_join(self):
     self.assertEqual(
         'Korea, Japan, China, and Taiwan',
         sass.and_join(['Korea', 'Japan', 'China', 'Taiwan'])
     )
     self.assertEqual(
         'Korea, and Japan',
         sass.and_join(['Korea', 'Japan'])
     )
     assert 'Korea' == sass.and_join(['Korea'])
     assert '' == sass.and_join([])