Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_tokenize(name: str, latex: str, expected: list):
assert list(tokenize(latex)) == expected
def aggregate(data):
tokens = tokenize(data)
return _aggregate(tokens)
def aggregate(data: str):
tokens = tokenize(data)
return _aggregate(tokens)