2 Commits 49f1c7a2c5 ... 48f36f7041

Author SHA1 Message Date
  Mistivia 48f36f7041 add complete op list 2 weeks ago
  Mistivia 49f1c7a2c5 add complete op list 2 weeks ago
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/test_as_parser.c

+ 2 - 2
tests/test_as_parser.c

@@ -28,11 +28,11 @@ int main(int argc, char** argv) {
     assert(strcmp("start", stmts[0]->label->name) == 0);
 
     assert(stmts[1]->label == NULL);
-    assert(stmts[1]->instr->op == ADD);
+    assert(stmts[1]->instr->op == OP_ADD);
     assert(stmts[1]->instr->arg->ival == 1);
 
     assert(strcmp("end", stmts[4]->label->name) == 0);
-    assert(stmts[4]->instr->op == EQ);
+    assert(stmts[4]->instr->op == OP_EQ);
 
     printf("[PASS] assembler parser\n");
     deleteAllocator(alct);