-
Notifications
You must be signed in to change notification settings - Fork 178
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
implemented low level find function for string matching #433
Conversation
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.
Thanks, this looks great so far.
Have you checked how robust your implementation works for an empty string input to the string and/or pattern?
Thanks, great progress so far. A few tests segfault, but I assume you're working on that. What do you think about making |
I checked for empty |
This may be specific to my setup. I'll look at it later today and report back. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…s.f90 Co-authored-by: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com>
Co-authored-by: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com>
f0b9a0d
to
87e2547
Compare
Thanks, the tests look complete now. Let us know once this PR is ready for review. |
Currently this function is
Done
Thanks for this, done. That's exactly what I was looking for. I didn't get any errors from |
There is something broken with the manual makefile. Not sure what in particular is broken there, will have a look later. |
7d4aeb5
to
f449f26
Compare
This comment has been minimized.
This comment has been minimized.
I gave some thought to it, it can be made Argument |
|
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.
Thanks a lot, this looks good now.
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.
LGTM. Thank you @aman-godara . IMO It can be merged, pending minor changes.
Co-authored-by: Jeremie Vandenplas <jeremie.vandenplas@gmail.com>
Co-authored-by: Jeremie Vandenplas <jeremie.vandenplas@gmail.com>
Co-authored-by: Jeremie Vandenplas <jeremie.vandenplas@gmail.com>
I added brackets ( |
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.
Often there is a back=.false.
argument to functions like this (i.e. the intrinsic function index
, which is very much like this one). I'm about to leave on vacation so I won't have time for a much more in depth review. At a quick glance it otherwise looks ok.
@aman-godara (and anybody else), I recommend reading the book The Art of Unit Testing by Roy Osherove to improve your unit test skills, if you can find the time.
A possible way IMO of doing this is to make a new function |
Sounds reasonable to me. |
@aman-godara @awvwgk Do you still plan to investigate/implement this option, suggested by @everythingfunctional ? |
Let's open a new issue on this and continue the discussion there. |
closes #421
Tasks:
find
functiontest_strings_functions.f90