Skip to content
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

[#206] Test on toml-v0.4.0 example #208

Merged
merged 7 commits into from
Jul 10, 2019
Merged

[#206] Test on toml-v0.4.0 example #208

merged 7 commits into from
Jul 10, 2019

Conversation

jiegillet
Copy link
Collaborator

Fix for #206. I apologize for letting that slip through me to begin with.

I don't have much experience with hspec, please let me know if I did something strange.

@jiegillet jiegillet added bug Something isn't working parser Everything related to `Text -> Toml` labels Jul 10, 2019
@jiegillet jiegillet requested a review from chshersh July 10, 2019 06:51
@jiegillet jiegillet self-assigned this Jul 10, 2019
@chshersh chshersh requested a review from vrom911 July 10, 2019 06:55
@jiegillet
Copy link
Collaborator Author

One of the checks failed because of the issue described in #198 (same-level tables with common subkeys)

Copy link
Contributor

@chshersh chshersh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding a lot of tests! Now we have even more robust testing system.

CHANGELOG.md Outdated Show resolved Hide resolved

files :: [FilePath]
files =
[ "fruit.toml"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose to use listDirectory function inside tests to avoid hardcoding of test cases:

You can use runIO function from hspec to run IO actions inside Spec monad:

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked into runIO when I was figuring out how to read files in a Spec but then I realized it can handle it just fine, I think I'll leave it like this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind, I guess it's necessary if I want to use listDirectory. On it.

Copy link
Contributor

@chshersh chshersh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@chshersh chshersh merged commit f74e60e into master Jul 10, 2019
@chshersh chshersh deleted the jie-206-parser branch July 10, 2019 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parser Everything related to `Text -> Toml`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants