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

Add sector reader

This commit is contained in:
2025-06-11 16:19:31 +02:00
parent ee1ac01fc4
commit 59220cc4bf
2 changed files with 42 additions and 1 deletions

View File

@ -7,6 +7,12 @@ func TestOpenFile(t *testing.T) {
if err != nil {
t.Fatal(err)
}
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.ApplicationName != "Pro 12.0" {
t.Errorf("expected application name to be 'Pro 12.0', got '%s'", f.ApplicationName)
}