Output images now get geometry specs to indicate what kind of file to write.

This commit is contained in:
David Given
2019-08-07 23:23:07 +02:00
parent eb924780ab
commit d8172154c3
27 changed files with 201 additions and 187 deletions

View File

@@ -89,14 +89,15 @@ static void test_fluxspec(void)
static void test_imagespec(void)
{
DataSpec spec("foo:t=9:h=2:s=99");
DataSpec spec("foo:c=9:h=2:s=99:b=256");
{
ImageSpec ispec(spec);
assert(ispec.filename == "foo");
assert(ispec.tracks == 9);
assert(ispec.cylinders == 9);
assert(ispec.heads == 2);
assert(ispec.sectors == 99);
assert(ispec.bytes = 256);
}
}