Skip to content

Commit

Permalink
add test for instructions::raise_exc
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckremes committed Jan 23, 2017
1 parent 061d377 commit cae90ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions machine/test/test_instructions.hpp
Expand Up @@ -1912,12 +1912,12 @@ class TestInstructions : public CxxTest::TestSuite, public VMTest {

void test_raise_exc() {
InstructionTest test = lambda {
stack_push(cNil);
Exception* exc = Exception::create(state);
stack_push(exc);

// TODO: instructions
// instructions::raise_exc(state, call_frame);
instructions::raise_exc(state, call_frame);

TS_ASSERT(true);
TS_ASSERT(kind_of<Exception>(state->thread_state()->current_exception()));
};

interpreter(1, 0, test);
Expand Down

0 comments on commit cae90ed

Please sign in to comment.