示例#1
0
    def test_split_words(self):
        data = "hello world"
        ret = Q.split(data, None).to_list()

        self.assertSequenceEqual(["hello", "world"], ret)
示例#2
0
    def test_split_words_with_count(self):
        data = "hello my world"
        ret = Q.split(data, None, 1).to_list()

        self.assertSequenceEqual(["hello", "my world"], ret)