Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
logica0419 committed Aug 13, 2024
1 parent d99c495 commit 57bd6fb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions resigif_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,18 @@ func TestResize(t *testing.T) {
want: "frog_resized.gif",
assertion: require.NoError,
},
{
name: "success (surprised 正方形、空のGlobal Color Table)",
args: args{
ctx: context.Background(),
src: "surprised.gif",
width: 256,
height: 256,
opts: nil,
},
want: "surprised_resized.gif",
assertion: require.NoError,
},
}

for _, tt := range tests {
Expand Down
2 changes: 2 additions & 0 deletions testdata/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ var FS embed.FS
// new_year.gif https://freesozaixtrain.web.fc2.com/freesozai-nenga-train2.html

// tooth.gif https://patirabi.com/2021/10/10/061gif/

// surprised.gif https://patirabi.com/2021/10/08/058gif/
Binary file added testdata/surprised.gif
Loading
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/surprised_resized.gif
Loading
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 57bd6fb

Please sign in to comment.