()
| 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() { |
nothing calls this directly
no test coverage detected