Fix m0 tests #752

Merged
merged 2 commits into from Apr 1, 2012

Conversation

Projects
None yet
2 participants
@nbrown
Contributor

nbrown commented Apr 1, 2012

Many of the m0 tests use fall-through to print 'nok' when a test fails and 'ok' when it passes. This requires that the failure branch precede the successful branch. There were a few test files where this wasn't true.

In an unrelated issue, the deref test file wasn't testing the result of the sub in the goto_if. If this test passes, it's simply because the register being tested has a zero value unrelated to the test.

nbrown added some commits Mar 31, 2012

make sure that the nok case precedes the ok case
The nok case must precede the ok case so that a failing test prints 'nok ...'
instead of 'n'.
Also, use the correct names ('and' and 'or') for the labels instead of
xor.

leto added a commit that referenced this pull request Apr 1, 2012

@leto leto merged commit 5246f7c into parrot:m0 Apr 1, 2012

@leto

This comment has been minimized.

Show comment Hide comment
@leto

leto Apr 1, 2012

Member

Thanks!

Member

leto commented Apr 1, 2012

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment