| 133 | } |
| 134 | |
| 135 | static void testPartialExtent() |
| 136 | { |
| 137 | auto sectors = std::make_shared<TestSectorInterface>(); |
| 138 | auto fs = Filesystem::createCpmFsFilesystem( |
| 139 | globalConfig()->filesystem(), diskLayout, sectors); |
| 140 | |
| 141 | setBlock(sectors, |
| 142 | 0, |
| 143 | createDirent("FILE", 0, 1, {1, 0, 0, 0, 0, 0, 0, 0, 0}) + |
| 144 | (blank_dirent * 63)); |
| 145 | setBlock(sectors, 1, {1}); |
| 146 | |
| 147 | auto files = fs->list(Path()); |
| 148 | AssertThat(files.size(), Equals(1)); |
| 149 | |
| 150 | auto data = fs->getFile(Path("0:FILE")); |
| 151 | AssertThat(data.size(), Equals(128)); |
| 152 | AssertThat(data[0x4000 * 0], Equals(1)); |
| 153 | } |
| 154 | |
| 155 | static void testLogicalExtents() |
| 156 | { |