Skip to content

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