DarkmatterVale/regex4dummies

View on GitHub
regex4dummies/tests/literal_tests/literal_parser_tester.py

Summary

Maintainability
A
45 mins
Test Coverage
class LiteralParserTests:
    def __init__(self, *args, **kwargs):
        """
        Blank constructor method
        """

        pass

    def run_tests(self, regex):
        """
        Runs tests, then returns
        """

        # Clearing screen
        print("Literal Parser Tests: ")
        print("----------------------")
        print("")

        # Printing the literal patterns within this string
        print("Literal Patterns: " + str(regex.compare_strings(parser='default', pattern_detection="literal", text=["Back at my desk, I poured and killed him a rattlesnake and some more rattlesnake", "the cat and the mouse in the house is sitting, in the house, on the mat", "time is it? It is currently four pm.", "what time is it here?", "what time is it", "This is the cat's hat", "That is the cat's hat"])))
        print("")

        # Clearing screen
        print("")