VscodeAdblockSyntax icon indicating copy to clipboard operation
VscodeAdblockSyntax copied to clipboard

Unit tests for tokenization

Open scripthunter7 opened this issue 2 years ago • 0 comments

Based on the TMLanguage, it is possible to tokenize various inputs and then compare them with a token list. This makes test_rules.txt unnecessary in practice (good for a demo at most), since unit tests can be used to ensure that there is no breakage and that tokenization always happens as expected.

See: https://www.npmjs.com/package/vscode-textmate

scripthunter7 avatar Jan 23 '23 12:01 scripthunter7