unittest { describe("thing", it("crash test suite", function() { set_timeout(function() { assert(false); }, 0.0f); }) ); }
If you look at this code. You can see that what we need is two things. Firstly a way to flush all events inside the "it" function. Secondly a way to catch any exceptions throw from callbacks, and pass them to the "it" functions.
unittest { "thing" ,
set_ timeout( function( ) {
assert( false);
describe(
it("crash test suite", function() {
}, 0.0f);
})
);
}
If you look at this code. You can see that what we need is two things. Firstly a way to flush all events inside the "it" function. Secondly a way to catch any exceptions throw from callbacks, and pass them to the "it" functions.