Skip to content

Commit

Permalink
add testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
logica0419 committed Dec 10, 2023
1 parent 708fc5f commit d13c886
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions service/imaging/processor_default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,18 @@ func TestProcessorDefault_FitAnimationGIF(t *testing.T) {
want: utils.MustIoReaderToBytes(mustOpenGif("parapara_resized.gif")),
err: nil,
},
{
name: "success (miku2 縦長、差分最適化)",
file: "miku2.gif",
want: utils.MustIoReaderToBytes(mustOpenGif("miku2_resized.gif")),
err: nil,
},
{
name: "success (rabbit 小サイズ)",
file: "rabbit.gif",
want: utils.MustIoReaderToBytes(mustOpenGif("rabbit_resized.gif")),
err: nil,
},
}

for _, tt := range test {
Expand Down
Binary file added testdata/gif/miku2.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testdata/gif/miku2_resized.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testdata/gif/rabbit.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testdata/gif/rabbit_resized.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d13c886

Please sign in to comment.