mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Output images now get geometry specs to indicate what kind of file to write.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user