Skip to content

Commit

Permalink
Add VM test for set_local
Browse files Browse the repository at this point in the history
  • Loading branch information
maximecb committed Nov 7, 2023
1 parent 182df4f commit 0ba1121
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vm/src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,12 @@ mod tests
eval_i64("push_i8 11; push_i8 1; lt_i64; exit;", 0);
}

#[test]
fn test_setlocal()
{
eval_i64(".code; push 0; push 77; set_local 0; get_local 0; exit;", 77);
}

#[test]
fn test_floats()
{
Expand Down

0 comments on commit 0ba1121

Please sign in to comment.