Add tests for for loop

Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Marcel Müller 2026-03-11 18:15:14 +01:00
parent 42e0056374
commit dc8281036c
7 changed files with 178 additions and 2 deletions

View file

@ -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(),