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

Function test_dir_current_entries_are_sorted

std/src/storage/cmds.rs:679–704  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

677
678 #[test]
679 fn test_dir_current_entries_are_sorted() {
680 Tester::default()
681 .write_file("empty.bas", "")
682 .write_file("some other file.bas", "not empty\n")
683 .write_file("00AAA.BAS", "first\nfile\n")
684 .write_file("not a bas.txt", "")
685 .run("DIR")
686 .expect_prints([
687 "",
688 " Directory of MEMORY:/",
689 "",
690 " Modified Size Name",
691 " 2020-05-06 09:37 11 00AAA.BAS",
692 " 2020-05-06 09:37 0 empty.bas",
693 " 2020-05-06 09:37 0 not a bas.txt",
694 " 2020-05-06 09:37 10 some other file.bas",
695 "",
696 " 4 file(s), 21 bytes",
697 "",
698 ])
699 .expect_file("MEMORY:/empty.bas", "")
700 .expect_file("MEMORY:/some other file.bas", "not empty\n")
701 .expect_file("MEMORY:/00AAA.BAS", "first\nfile\n")
702 .expect_file("MEMORY:/not a bas.txt", "")
703 .check();
704 }
705
706 #[test]
707 fn test_dir_other_by_argument() {

Callers

nothing calls this directly

Calls 5

write_fileMethod · 0.80
checkMethod · 0.45
expect_fileMethod · 0.45
expect_printsMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected