diff --git a/common/nori/nori_test.go b/common/nori/nori_test.go index f59f7c6..d9217d6 100644 --- a/common/nori/nori_test.go +++ b/common/nori/nori_test.go @@ -20,7 +20,7 @@ func TestParseFile1(t *testing.T) { } t.Logf("\n nori: %+v\n gawi: %+v", nori, nori.Gawi) a := nori.ExportAnimation() - writeApng(a, "./nori_test/palette.apng") + writeApng(a, "./nori_test/test1.apng") } func TestParseFile2(t *testing.T) { @@ -34,7 +34,7 @@ func TestParseFile2(t *testing.T) { } t.Logf("\n nori: %+v\n gawi: %+v", nori, nori.Gawi) a := nori.ExportAnimation() - writeApng(a, "./nori_test/palette.apng") + writeApng(a, "./nori_test/test2.apng") } func TestParsePalette(t *testing.T) { @@ -58,5 +58,5 @@ func writeApng(a *apng.APNG, fp string) { if err != nil { log.Errorf("fail to encode apng %s", err) } - os.WriteFile("./nori_test/palette.apng", out.Bytes(), 0740) + os.WriteFile(fp, out.Bytes(), 0740) } diff --git a/common/nori/nori_test/test1.apng b/common/nori/nori_test/test1.apng new file mode 100755 index 0000000..f5822a9 Binary files /dev/null and b/common/nori/nori_test/test1.apng differ diff --git a/common/nori/nori_test/test2.apng b/common/nori/nori_test/test2.apng new file mode 100755 index 0000000..40d94af Binary files /dev/null and b/common/nori/nori_test/test2.apng differ