Skip to content

Commit

Permalink
Implemented but not tested NOT_EQUAL operator
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-mike committed May 9, 2020
1 parent 96d0b26 commit a5dfd3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions native-vm/microvium.c
Expand Up @@ -921,8 +921,13 @@ LBL_OP_EXTENDED_1: {
/* ------------------------------------------------------------------------- */

MVM_CASE_CONTIGUOUS (VM_OP1_NOT_EQUAL): {
CODE_COVERAGE_UNTESTED(123); // Not hit
VM_NOT_IMPLEMENTED(vm);
if(mvm_equal(vm, reg1, reg2)) {
CODE_COVERAGE_UNTESTED(123); // Not hit
reg1 = VM_VALUE_FALSE;
} else {
CODE_COVERAGE_UNTESTED(485); // Not hit
reg1 = VM_VALUE_TRUE;
}
goto LBL_DO_NEXT_INSTRUCTION;
}

Expand Down
2 changes: 1 addition & 1 deletion test/end-to-end/artifacts/code-coverage-summary.txt
@@ -1 +1 @@
microvium.c code coverage: 157 of 491 (32.0%)
microvium.c code coverage: 157 of 492 (31.9%)

0 comments on commit a5dfd3b

Please sign in to comment.