-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Gardening tests #133
Gardening tests #133
Conversation
Time Change: +157.75ms (1%) Total Time: 10,526ms ℹ️ View Unchanged
|
@@ -200,7 +200,9 @@ try test("Closure Lifetime") { | |||
} | |||
c1.release() | |||
// Call a released closure | |||
print("======= BEGIN OF EXPECTED FATAL ERROR =====") | |||
_ = try expectThrow(try evalClosure.throws(c1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should expectThrow
contain these print
s to avoid repetition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expectThrow
is not for crash tests, so I added another helper function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems legit, thanks!
make test
crashes due toJSClosure
memory issues #129 because it's an expected crash output