Skip to content

Migrate tests to purescript-assert #10

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

Merged
merged 3 commits into from
Oct 23, 2020
Merged

Migrate tests to purescript-assert #10

merged 3 commits into from
Oct 23, 2020

Conversation

JordanMartinez
Copy link
Contributor

Addresses part of #8 by migrating all tests from purescript-test-unit to purescript-assert.

@JordanMartinez JordanMartinez mentioned this pull request Oct 22, 2020
test/Main.purs Outdated
test "valid number string" do
assert "integer strings are coerced" $
fromMaybe false $ map (_ == 123.0) $ fromString "123"
-- suite "Data.Number.fromString" do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Rather than commenting these out (I think checking in commented-out code is usually best avoided), how about replacing these with calls to log? That way you’ll still have the context in the test output.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good. I'll work on that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@hdgarrood hdgarrood merged commit 20ca891 into purescript:master Oct 23, 2020
@JordanMartinez JordanMartinez deleted the migrateToAssert branch October 24, 2020 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants