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

test exceptions messages #270

Merged
merged 1 commit into from
Oct 23, 2017
Merged

test exceptions messages #270

merged 1 commit into from
Oct 23, 2017

Conversation

sergot
Copy link
Collaborator

@sergot sergot commented Oct 22, 2017

closes #262

I change is-error() to additionally check if exception's message is what we expect

@sergot sergot requested a review from masak October 22, 2017 20:52
is-error
$ast,
X::TypeCheck,
"Type check failed in +; expected Val::Int but got Val::Str (Val::Str.new(value =>...)",
Copy link
Owner

Choose a reason for hiding this comment

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

This looks odd and not expected, but I think I'm going to let it through for now, because the real fix would be #245.

@masak masak merged commit a1595f2 into master Oct 23, 2017
@masak masak deleted the test-exception-msgs branch October 23, 2017 06:07
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.

Improve all the exception-expecting tests by also testing the exact message
2 participants