Add unit test cases to our regular expressions
See original GitHub issueIn @logto/shared
package, there are several regular expressions defined in src/regex.ts
. Create unit test cases to ensure the correctness of the expressions.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
How do you unit test regular expressions? - Stack Overflow
You should always test your regexen, much like any other chunk of code. They're at the most simple a function that takes a...
Read more >Should there be unit tests for complex regular expressions?
Testing dogmatism aside, the real question is whether it provides value to unit test complex regular expressions. It seems pretty clear that ...
Read more >Unit Testing Regular Expressions - Adolfi.dev
I have an idea, but I'm not sure. For example, what would happen if the name I'm passing in has a middle name?...
Read more >Using Regex for Input/Output Tests - Coding Rooms
Once you click “Add Test Case”, you can name you test case, identify the number of points it is worth, and select the...
Read more >How To Unit Test – RegEx and Technorati - Ben Hall's Blog
To implement this feature, the first thing i'm going to have implement is being able to return a list of all the tags...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can I take this one up ? 😃
lol, no worries