def test_find_key_words_in_line(self):
        sentience_to_tokenize = (
            "help word word word word word word word word word")
        word_to_find = "test"

        line_funcs = LineFunc()
        function_to_test = line_funcs.find_key_word_in_line(
            sentience_to_tokenize, word_to_find)
        self.assertEqual(function_to_test, None)
    def test_find_key_word_in_line(self):
        sentience_to_tokenize = (
            "word word help word help word help word help word")
        find_word_after = ["word"]  # should be help

        line_funcs = LineFunc()
        function_to_test = line_funcs.find_key_word_in_line(
            sentience_to_tokenize, find_word_after)

        self.assertEqual(function_to_test, "help")
    def test_line_tokenizer(self):
        sentice_to_tokenze = (
            "word word help word help word help word help word")
        token_list = [
            "word", "word", "help", "word", "help", "word", "help", "word",
            "help", "word"
        ]

        line_funcs = LineFunc()
        function_to_test = line_funcs.line_tokenizer(sentice_to_tokenze)

        self.assertEqual(function_to_test, token_list)
    def test_binary_search(self):
        word_list = [
            "help", "help", "help", "help", "help", "help", "help", "help",
            "help", "word"
        ]
        word_list.sort()
        word_to_find = "word"

        line_funcs = LineFunc()
        function_to_test = line_funcs.binary_search(word_to_find, word_list)
        print(function_to_test)

        self.assertEqual(function_to_test, word_to_find)
    def test_line_filter_non_filter_line(self):
        line_to_filer = "int value = 'test'"

        line_funcs = LineFunc()
        function_to_test = line_funcs.line_filter(line_to_filer)
        self.assertEqual(function_to_test, True)
    def test_line_filter_comment(self):
        line_to_filer = "//"

        line_funcs = LineFunc()
        function_to_test = line_funcs.line_filter(line_to_filer)
        self.assertEqual(function_to_test, False)
    def test_line_filter_newline(self):
        line_to_filer = "\n"

        line_funcs = LineFunc()
        function_to_test = line_funcs.line_filter(line_to_filer)
        self.assertEqual(function_to_test, False)