tshort / StaticCompiler.jl

Compiles Julia code to a standalone library (experimental)
Other
498 stars 30 forks source link

Error handling tests #98

Closed brenhinkeller closed 1 year ago

brenhinkeller commented 1 year ago

Quick core and integration tests for @gbaraldi's awesome new error handling features in standalone executables

MasonProtter commented 1 year ago

@brenhinkeller Am I understanding this correctly? The test you wrote doesn't actually call maybe_throw, it seems to call print_args!

brenhinkeller commented 1 year ago

Oh hmm, it looks like there is a mistake in the test in testcore.jl -- that should be calling foo_err with no arguments rather than print_args -- though the integration test does look to be correctly calling maybe_throw AFAICT