Skip to content

Conversation

@sampersand
Copy link
Contributor

@sampersand sampersand commented Oct 18, 2025

This PR adds tests for Kernel.{abort,exit,exit!,at_exit} and Kernel.{throw,catch,raise,fail}, as well as slightly tweaking the fail signature.

Additionally, it adds in the assert_send_type_error method (which is just a direct copy of assert_send_type, but accepts a type as the second argument)

@sampersand sampersand force-pushed the sampersand/2025-10-17/exiting-and-exceptions branch from bcf6041 to 2789ea5 Compare October 18, 2025 02:07
@sampersand sampersand force-pushed the sampersand/2025-10-17/exiting-and-exceptions branch from 2789ea5 to 49593f8 Compare October 18, 2025 02:09
@sampersand sampersand marked this pull request as ready for review October 18, 2025 02:10
Copy link
Collaborator

@ksss ksss left a comment

Choose a reason for hiding this comment

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

Checking for a value like SystemExit rather than a type seems to be testing behavior, not the type.

@sampersand
Copy link
Contributor Author

Checking for a value like SystemExit rather than a type seems to be testing behavior, not the type.

The idea is to make sure that the exception that was thrown was one we expected from exit, not something like ArgumentError/TypeError caused by invalid arguments

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