Skip to content

Commit

Permalink
test(vm): test AND/OR opcode evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
taizu-jin committed Sep 20, 2023
1 parent 5e12bbc commit 5fb763b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,19 @@ mod tests {
"NOT NOT rbap_true.",
true,
"NOT NOT rbap_false.",
false
false,
"rbap_true AND rbap_true.",
true,
"rbap_false AND rbap_false.",
false,
"rbap_true AND rbap_false.",
false,
"rbap_true OR rbap_true.",
true,
"rbap_false OR rbap_false.",
false,
"rbap_true OR rbap_false.",
true
);

run_vm_tests(tests)
Expand Down

0 comments on commit 5fb763b

Please sign in to comment.