def runfiletest(self, script, strings, expected): """ Run a script on a list of strings, returns the output and expected output """ sed = Sed(script, quiet=True) return [sed.parse(string) for string in strings], expected
def runfiletest(self, script, strings, expected): """ Run a script on a list of strings, returns the output and expected output """ sed = Sed(script, quiet=True) return [sed.parse(string) for string in strings], expected
def runtest(self, script, string, expected): """ Run a script on a string, returns the output and expected ouput """ sed = Sed(script, quiet=True) return sed.parse(string), expected
def runtest(self, script, string, expected): """ Run a script on a string, returns the output and expected ouput """ sed = Sed(script, quiet=True) return sed.parse(string), expected