-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #1 - Allows use of re and fullMatch outside of main module #2
Conversation
@@ -1566,7 +1566,7 @@ iterator peek[T: seq[Rune] | string](s: T): (int, Rune, Rune) {.inline.} = | |||
yield (j, prev, invalidRune) | |||
|
|||
# todo: make it iterative | |||
proc step( | |||
proc step*( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure this must be public?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just tried this. The issue is in the template stepFrom()
below. It seems the method syntax has some limitations and can't be resolved from result.step(...)
to step(result, ...)
, but changing that fixes the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I just fixed it this way ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reported the issue nim-lang/Nim#7085
Hey @honewatson, glad someone is already trying this 😄 There are a ton of test within the module. I was going to split them into tests modules (see the comments named |
I've fixed most issues here (without exporting non-public APIs). I'd like to keep the test, but not sure if using |
Not sure how koch testing works but I do think that tests should be independent of the source. |
Anyway terrific work and well done. Its nice to see it working with the complex email regex out of the box. |
I agree. The tests must be moved to a test folder, like you did here. In fact there are comments the future names of the files (i.e:
Thanks!! 😄 |
I'm closing this. I've created a tests folder and moved almost all tests there. I'd like to keep the email test from this PR. So if you feel like it, please open a new PR with the test case, but there's no rush to do it. Thanks! |
No description provided.