question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add unit test cases to our regular expressions

See original GitHub issue

In @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:closed
  • Created a year ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
waveywavescommented, Sep 8, 2022

Can I take this one up ? 😃

1reaction
charIeszhaocommented, Sep 8, 2022

@charIeszhao, Happy to work on it, can I be assigned?

Sorry, buddy. I think you have taken too many bounties right now. Leave something for the others, will ya? 🤣 Will find some more challenging task for you in the next few weeks, since you are already a veteran now. Stay tuned!

Ahaha, right. Okay np, I’m sorry

lol, no worries

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found