import unittest

from common import test_by_reflect


class TestGoogle(unittest.TestCase):
    """Test m1314_google.py"""

    def test_google(self):
        commands = ["AutocompleteSystem", "input", "input", "input", "input"]
        params = [[["i love you", "island", "iroman", "i love leetcode"], [5, 3, 2, 2]], ["i"], [" "], ["a"], ["#"]]
        res = [None, ["i love you", "island", "i love leetcode"], ["i love you", "i love leetcode"], [], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)

        commands = ["AutocompleteSystem", "input", "input", "input", "input", "input", "input", "input", "input",
                    "input", "input", "input", "input", "input", "input"]
        params = [[["abc", "abbc", "a"], [3, 3, 3]], ["b"], ["c"], ["#"], ["b"], ["c"], ["#"], ["a"], ["b"], ["c"],
                  ["#"], ["a"], ["b"], ["c"], ["#"]]
        res = [None, [], [], [], ["bc"], ["bc"], [], ["a", "abbc", "abc"], ["abbc", "abc"], ["abc"], [],
               ["abc", "a", "abbc"], ["abc", "abbc"], ["abc"], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)

        commands = ["AutocompleteSystem", "input", "input", "input", "input", "input", "input", "input", "input", "input", "input",
         "input", "input"]
        params = [[["i love you", "island", "iroman", "i love leetcode"], [5, 3, 2, 2]], ["i"], [" "], ["a"], ["#"], ["i"], [" "],
         ["a"], ["#"], ["i"], [" "], ["a"], ["#"]]
        res = [None, ["i love you", "island", "i love leetcode"], ["i love you", "i love leetcode"], [], [],
         ["i love you", "island", "i love leetcode"], ["i love you", "i love leetcode", "i a"], ["i a"], [],
         ["i love you", "island", "i a"], ["i love you", "i a", "i love leetcode"], ["i a"], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)


if __name__ == '__main__':
    unittest.main()

c998d5daf89e88df9ce6c03d52cfa2543d3be5b1
<mask token>


class TestGoogle(unittest.TestCase):
    <mask token>

    def test_google(self):
        commands = ['AutocompleteSystem', 'input', 'input', 'input', 'input']
        params = [[['i love you', 'island', 'iroman', 'i love leetcode'], [
            5, 3, 2, 2]], ['i'], [' '], ['a'], ['#']]
        res = [None, ['i love you', 'island', 'i love leetcode'], [
            'i love you', 'i love leetcode'], [], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)
        commands = ['AutocompleteSystem', 'input', 'input', 'input',
            'input', 'input', 'input', 'input', 'input', 'input', 'input',
            'input', 'input', 'input', 'input']
        params = [[['abc', 'abbc', 'a'], [3, 3, 3]], ['b'], ['c'], ['#'], [
            'b'], ['c'], ['#'], ['a'], ['b'], ['c'], ['#'], ['a'], ['b'], [
            'c'], ['#']]
        res = [None, [], [], [], ['bc'], ['bc'], [], ['a', 'abbc', 'abc'],
            ['abbc', 'abc'], ['abc'], [], ['abc', 'a', 'abbc'], ['abc',
            'abbc'], ['abc'], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)
        commands = ['AutocompleteSystem', 'input', 'input', 'input',
            'input', 'input', 'input', 'input', 'input', 'input', 'input',
            'input', 'input']
        params = [[['i love you', 'island', 'iroman', 'i love leetcode'], [
            5, 3, 2, 2]], ['i'], [' '], ['a'], ['#'], ['i'], [' '], ['a'],
            ['#'], ['i'], [' '], ['a'], ['#']]
        res = [None, ['i love you', 'island', 'i love leetcode'], [
            'i love you', 'i love leetcode'], [], [], ['i love you',
            'island', 'i love leetcode'], ['i love you', 'i love leetcode',
            'i a'], ['i a'], [], ['i love you', 'island', 'i a'], [
            'i love you', 'i a', 'i love leetcode'], ['i a'], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)


<mask token>

<mask token>


class TestGoogle(unittest.TestCase):
    """Test m1314_google.py"""

    def test_google(self):
        commands = ['AutocompleteSystem', 'input', 'input', 'input', 'input']
        params = [[['i love you', 'island', 'iroman', 'i love leetcode'], [
            5, 3, 2, 2]], ['i'], [' '], ['a'], ['#']]
        res = [None, ['i love you', 'island', 'i love leetcode'], [
            'i love you', 'i love leetcode'], [], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)
        commands = ['AutocompleteSystem', 'input', 'input', 'input',
            'input', 'input', 'input', 'input', 'input', 'input', 'input',
            'input', 'input', 'input', 'input']
        params = [[['abc', 'abbc', 'a'], [3, 3, 3]], ['b'], ['c'], ['#'], [
            'b'], ['c'], ['#'], ['a'], ['b'], ['c'], ['#'], ['a'], ['b'], [
            'c'], ['#']]
        res = [None, [], [], [], ['bc'], ['bc'], [], ['a', 'abbc', 'abc'],
            ['abbc', 'abc'], ['abc'], [], ['abc', 'a', 'abbc'], ['abc',
            'abbc'], ['abc'], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)
        commands = ['AutocompleteSystem', 'input', 'input', 'input',
            'input', 'input', 'input', 'input', 'input', 'input', 'input',
            'input', 'input']
        params = [[['i love you', 'island', 'iroman', 'i love leetcode'], [
            5, 3, 2, 2]], ['i'], [' '], ['a'], ['#'], ['i'], [' '], ['a'],
            ['#'], ['i'], [' '], ['a'], ['#']]
        res = [None, ['i love you', 'island', 'i love leetcode'], [
            'i love you', 'i love leetcode'], [], [], ['i love you',
            'island', 'i love leetcode'], ['i love you', 'i love leetcode',
            'i a'], ['i a'], [], ['i love you', 'island', 'i a'], [
            'i love you', 'i a', 'i love leetcode'], ['i a'], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)


<mask token>

<mask token>


class TestGoogle(unittest.TestCase):
    """Test m1314_google.py"""

    def test_google(self):
        commands = ['AutocompleteSystem', 'input', 'input', 'input', 'input']
        params = [[['i love you', 'island', 'iroman', 'i love leetcode'], [
            5, 3, 2, 2]], ['i'], [' '], ['a'], ['#']]
        res = [None, ['i love you', 'island', 'i love leetcode'], [
            'i love you', 'i love leetcode'], [], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)
        commands = ['AutocompleteSystem', 'input', 'input', 'input',
            'input', 'input', 'input', 'input', 'input', 'input', 'input',
            'input', 'input', 'input', 'input']
        params = [[['abc', 'abbc', 'a'], [3, 3, 3]], ['b'], ['c'], ['#'], [
            'b'], ['c'], ['#'], ['a'], ['b'], ['c'], ['#'], ['a'], ['b'], [
            'c'], ['#']]
        res = [None, [], [], [], ['bc'], ['bc'], [], ['a', 'abbc', 'abc'],
            ['abbc', 'abc'], ['abc'], [], ['abc', 'a', 'abbc'], ['abc',
            'abbc'], ['abc'], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)
        commands = ['AutocompleteSystem', 'input', 'input', 'input',
            'input', 'input', 'input', 'input', 'input', 'input', 'input',
            'input', 'input']
        params = [[['i love you', 'island', 'iroman', 'i love leetcode'], [
            5, 3, 2, 2]], ['i'], [' '], ['a'], ['#'], ['i'], [' '], ['a'],
            ['#'], ['i'], [' '], ['a'], ['#']]
        res = [None, ['i love you', 'island', 'i love leetcode'], [
            'i love you', 'i love leetcode'], [], [], ['i love you',
            'island', 'i love leetcode'], ['i love you', 'i love leetcode',
            'i a'], ['i a'], [], ['i love you', 'island', 'i a'], [
            'i love you', 'i a', 'i love leetcode'], ['i a'], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)


if __name__ == '__main__':
    unittest.main()

import unittest
from common import test_by_reflect


class TestGoogle(unittest.TestCase):
    """Test m1314_google.py"""

    def test_google(self):
        commands = ['AutocompleteSystem', 'input', 'input', 'input', 'input']
        params = [[['i love you', 'island', 'iroman', 'i love leetcode'], [
            5, 3, 2, 2]], ['i'], [' '], ['a'], ['#']]
        res = [None, ['i love you', 'island', 'i love leetcode'], [
            'i love you', 'i love leetcode'], [], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)
        commands = ['AutocompleteSystem', 'input', 'input', 'input',
            'input', 'input', 'input', 'input', 'input', 'input', 'input',
            'input', 'input', 'input', 'input']
        params = [[['abc', 'abbc', 'a'], [3, 3, 3]], ['b'], ['c'], ['#'], [
            'b'], ['c'], ['#'], ['a'], ['b'], ['c'], ['#'], ['a'], ['b'], [
            'c'], ['#']]
        res = [None, [], [], [], ['bc'], ['bc'], [], ['a', 'abbc', 'abc'],
            ['abbc', 'abc'], ['abc'], [], ['abc', 'a', 'abbc'], ['abc',
            'abbc'], ['abc'], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)
        commands = ['AutocompleteSystem', 'input', 'input', 'input',
            'input', 'input', 'input', 'input', 'input', 'input', 'input',
            'input', 'input']
        params = [[['i love you', 'island', 'iroman', 'i love leetcode'], [
            5, 3, 2, 2]], ['i'], [' '], ['a'], ['#'], ['i'], [' '], ['a'],
            ['#'], ['i'], [' '], ['a'], ['#']]
        res = [None, ['i love you', 'island', 'i love leetcode'], [
            'i love you', 'i love leetcode'], [], [], ['i love you',
            'island', 'i love leetcode'], ['i love you', 'i love leetcode',
            'i a'], ['i a'], [], ['i love you', 'island', 'i a'], [
            'i love you', 'i a', 'i love leetcode'], ['i a'], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)


if __name__ == '__main__':
    unittest.main()

import unittest

from common import test_by_reflect


class TestGoogle(unittest.TestCase):
    """Test m1314_google.py"""

    def test_google(self):
        commands = ["AutocompleteSystem", "input", "input", "input", "input"]
        params = [[["i love you", "island", "iroman", "i love leetcode"], [5, 3, 2, 2]], ["i"], [" "], ["a"], ["#"]]
        res = [None, ["i love you", "island", "i love leetcode"], ["i love you", "i love leetcode"], [], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)

        commands = ["AutocompleteSystem", "input", "input", "input", "input", "input", "input", "input", "input",
                    "input", "input", "input", "input", "input", "input"]
        params = [[["abc", "abbc", "a"], [3, 3, 3]], ["b"], ["c"], ["#"], ["b"], ["c"], ["#"], ["a"], ["b"], ["c"],
                  ["#"], ["a"], ["b"], ["c"], ["#"]]
        res = [None, [], [], [], ["bc"], ["bc"], [], ["a", "abbc", "abc"], ["abbc", "abc"], ["abc"], [],
               ["abc", "a", "abbc"], ["abc", "abbc"], ["abc"], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)

        commands = ["AutocompleteSystem", "input", "input", "input", "input", "input", "input", "input", "input", "input", "input",
         "input", "input"]
        params = [[["i love you", "island", "iroman", "i love leetcode"], [5, 3, 2, 2]], ["i"], [" "], ["a"], ["#"], ["i"], [" "],
         ["a"], ["#"], ["i"], [" "], ["a"], ["#"]]
        res = [None, ["i love you", "island", "i love leetcode"], ["i love you", "i love leetcode"], [], [],
         ["i love you", "island", "i love leetcode"], ["i love you", "i love leetcode", "i a"], ["i a"], [],
         ["i love you", "island", "i a"], ["i love you", "i a", "i love leetcode"], ["i a"], []]
        test_by_reflect(self, 'm1314_google', commands, params, res)


if __name__ == '__main__':
    unittest.main()
