diskii/woz/woz_test.go

22 lines
387 B
Go
Raw Normal View History

2018-06-07 02:27:15 +00:00
package woz_test
import (
"bytes"
"testing"
"github.com/zellyn/diskii/data"
2021-06-26 02:33:11 +00:00
"github.com/zellyn/diskii/woz"
2018-06-07 02:27:15 +00:00
)
func TestBasicLoad(t *testing.T) {
wz, err := woz.Decode(bytes.NewReader(data.DOS33master_woz))
2018-06-07 02:27:15 +00:00
if err != nil {
t.Fatal(err)
}
if len(wz.Unknowns) > 0 {
t.Fatalf("want 0 unknowns; got %d", len(wz.Unknowns))
}
2018-06-08 03:30:25 +00:00
// fmt.Printf("%#v\n", wz)
// t.Fatal("NOTHING")
2018-06-07 02:27:15 +00:00
}