nitely / nim-regex

Pure Nim regex engine. Guarantees linear time matching
https://nitely.github.io/nim-regex/
MIT License
227 stars 20 forks source link

Improve tests VM vs Runtime #11

Closed nitely closed 6 years ago

nitely commented 6 years ago

Most tests will compile the regular expression at compile time. So, there are pretty much no tests for runtime regexes. I think I could just add a when defined(forceRegexAtRuntime): ... to the re template to test both without any major changes.