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

Function test_autoexec_name_is_case_sensitive

repl/src/lib.rs:417–429  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

415
416 #[test]
417 fn test_autoexec_name_is_case_sensitive() {
418 let tester = Tester::default()
419 .write_file("AUTOEXEC.BAS", "a = 1")
420 .write_file("autoexec.bas", "a = 2");
421 let (console, storage) = (tester.get_console(), tester.get_storage());
422 let mut continuation = tester.continue_from_here();
423 block_on(try_load_autoexec(continuation.get_machine(), console, storage)).unwrap();
424 continuation
425 .run("")
426 .expect_file("MEMORY:/AUTOEXEC.BAS", "a = 1")
427 .expect_file("MEMORY:/autoexec.bas", "a = 2")
428 .check();
429 }
430
431 #[test]
432 fn test_autoexec_missing() {

Callers

nothing calls this directly

Calls 9

try_load_autoexecFunction · 0.85
write_fileMethod · 0.80
continue_from_hereMethod · 0.80
get_machineMethod · 0.80
get_consoleMethod · 0.45
get_storageMethod · 0.45
checkMethod · 0.45
expect_fileMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected