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

fsharp-friendly string formatting for failed equals constraint #60

Merged
merged 1 commit into from
Jul 29, 2015
Merged

Conversation

et1975
Copy link
Contributor

@et1975 et1975 commented Jul 28, 2015

I don't know how people live with the current failed assertion messages, before:

type R = { a:int }
...
{a=1} |> should equal {a=2} // results in "expect R, but was R" kind of message!

after:

...
{a=1} |> should equal {a=2} // results in "expect {a=1}, but was {a=2}" 

Seriously, if there's a better way than this change, I'd like to know!

sergey-tihon added a commit that referenced this pull request Jul 29, 2015
fsharp-friendly string formatting for failed equals constraint
@sergey-tihon sergey-tihon merged commit cbbdd27 into fsprojects:master Jul 29, 2015
@sergey-tihon
Copy link
Member

Thank you @et1975

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