Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make a test that tests whether the names of Regex are capitalised #205

Closed
bee-san opened this issue Oct 11, 2021 · 2 comments
Closed

Make a test that tests whether the names of Regex are capitalised #205

bee-san opened this issue Oct 11, 2021 · 2 comments
Assignees
Labels
good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed

Comments

@bee-san
Copy link
Owner

bee-san commented Oct 11, 2021

When someone submits a regex with:

"name": "all lowercase regex"

The test should fail and instead should ask for:

"name": "All Lowercase Regex"

See:
https://www.geeksforgeeks.org/title-in-python/

Original mention of issue

As you are already enforcing the leading ^ and ending $ in regex and testing it. This could also be integrated as a test. (Like name.split(" "), iterate and maybe ignore single letter words)

Yes, we should have good regex.json tests.

Originally posted by @piatrashkakanstantinass in #204 (comment)

@bee-san bee-san added good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed labels Oct 11, 2021
@PabloLec
Copy link
Contributor

The thing with .title() is that it will break words like SSH or URL.
I can work on a text if you want to 😉

@bee-san
Copy link
Owner Author

bee-san commented Oct 11, 2021

The thing with .title() is that it will break words like SSH or URL. I can work on a text if you want to 😉

Sure! :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants