Add tests for for loop
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
42e0056374
commit
dc8281036c
7 changed files with 178 additions and 2 deletions
|
|
@ -151,6 +151,7 @@ pub fn execute(vm: &VMInstructions, global_context: &Context) -> Result<String,
|
|||
};
|
||||
|
||||
ip = *new_ip;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
Instruction::GetIteratorEmptyOrJump {
|
||||
|
|
@ -166,6 +167,7 @@ pub fn execute(vm: &VMInstructions, global_context: &Context) -> Result<String,
|
|||
};
|
||||
|
||||
ip = *new_ip;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
Instruction::PopScope => scopes.pop_scope(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue