1
0
mirror of https://github.com/garraflavatra/go-fmp.git synced 2025-06-28 04:25:11 +00:00

Parse doubly linked sectors in order

This commit is contained in:
2025-06-13 12:09:39 +02:00
parent 6f3622be92
commit 7ff0cc8501
4 changed files with 64 additions and 28 deletions

View File

@ -10,8 +10,8 @@ func TestOpenFile(t *testing.T) {
if f.FileSize != 393216 {
t.Errorf("expected file size to be 393216, got %d", f.FileSize)
}
if f.numSectors != 96 {
t.Errorf("expected number of sectors to be 96, got %d", f.numSectors)
if f.numSectors != 95 {
t.Errorf("expected number of sectors to be 95, got %d", f.numSectors)
}
if f.CreatorName != "Pro 12.0" {
t.Errorf("expected application name to be 'Pro 12.0', got '%s'", f.CreatorName)