-
Notifications
You must be signed in to change notification settings - Fork 182
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
Modification of the function parse_mode in stdlib_experimental_io #77
Conversation
+1 from me to merge
…On Sat, Jan 4, 2020, at 4:08 PM, Jeremie Vandenplas wrote:
I modified the function `parse_mode` in `stdlib_experimental_io.f90` to
be more flexible.
I also added a new test file `test_parse_mode.f90` and removed
associated tests from `test_open` (in case we would use a public
`parse_mode` only for tests).
I added several cases for testing `parse_mode`.
You can view, comment on, or merge this pull request online at:
#77
Commit Summary
* modification of parse_mode + separation of test_open and
test_parse_mode (+additional tests)
* renamed test_parse_mode subroutine for consistency
File Changes
* *M* src/stdlib_experimental_io.f90
<https://github.com/fortran-lang/stdlib/pull/77/files#diff-0> (37)
* *M* src/tests/io/CMakeLists.txt
<https://github.com/fortran-lang/stdlib/pull/77/files#diff-1> (5)
* *M* src/tests/io/Makefile.manual
<https://github.com/fortran-lang/stdlib/pull/77/files#diff-2> (1)
* *M* src/tests/io/test_open.f90
<https://github.com/fortran-lang/stdlib/pull/77/files#diff-3> (44)
* *A* src/tests/io/test_parse_mode.f90
<https://github.com/fortran-lang/stdlib/pull/77/files#diff-4> (171)
Patch Links:
* https://github.com/fortran-lang/stdlib/pull/77.patch
* https://github.com/fortran-lang/stdlib/pull/77.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#77?email_source=notifications&email_token=AAAFAWFDO6YKOP7ERLLRKKTQ4EJILA5CNFSM4KCYMGO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IEBJACQ>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAFAWFUWZW4OPNEFD54RITQ4EJILANCNFSM4KCYMGOQ>.
|
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.
This does not change any public API and improves the implementation and adds tests. So I am going to go ahead and merge this.
@jvdp1 thanks, it looks great! The only additional improvement that I can think of is if something calls it like this |
Things like "rr" is not a problem, while things like "rw" are a problem. I will have a look to modify Edit: This should be solved with #82 |
I modified the function
parse_mode
instdlib_experimental_io.f90
to be more flexible.I also added a new test file
test_parse_mode.f90
and removed associated tests fromtest_open
(in case we would use a publicparse_mode
only for tests).I added several cases for testing
parse_mode
.