示例#1
0
 def test_compress_dash(self):
     original = "i3-workspace-names-daemon"
     expected = "i3-wor-nam-dae"
     actual = compress(original)
     self.assertEqual(expected, actual)
示例#2
0
 def test_compress_trailing_double(self):
     original = "i3-workspace-names-daemon__"
     expected = "i3-wor-nam-dae_"
     actual = compress(original)
     self.assertEqual(expected, actual)
示例#3
0
 def test_compress_short(self):
     original = "a-b-c-d"
     expected = "a-b-c-d"
     actual = compress(original)
     self.assertEqual(expected, actual)
示例#4
0
 def test_compress_mixed(self):
     original = "i3-workspace_names_daemon"
     expected = "i3-wor_nam_dae"
     actual = compress(original)
     self.assertEqual(expected, actual)