MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_exec_end_code_explicit

Function test_exec_end_code_explicit

core/src/vm/mod.rs:874–882  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

872
873 #[tokio::test]
874 async fn test_exec_end_code_explicit() {
875 let mut vm = Vm::new(HashMap::default());
876 let compiler = Compiler::new(&HashMap::default(), &[]).unwrap();
877 let image = compiler.compile(&mut b"END 3".as_slice()).unwrap();
878 match vm.exec(&image) {
879 StopReason::End(code) if code.to_i32() == 3 => (),
880 _ => panic!("Unexpected stop reason"),
881 }
882 }
883
884 #[tokio::test]
885 async fn test_exec_end_can_resume_after_append() {

Callers

nothing calls this directly

Calls 4

to_i32Method · 0.80
compileMethod · 0.45
as_sliceMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected