Skip to content

Commit

Permalink
test: add interlaced image that can not be decoded
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Feb 18, 2023
1 parent 04288bf commit 11a5737
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file added img/interlaced.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/__tests__/decode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ describe('decode', () => {
);
});

it('interlaced', () => {
expect(() => loadAndDecode('interlaced.png')).toThrow(
'Interlace method 1 not supported',
);
});

it('ColorGrid5x5', () => {
const img = loadAndDecode('ColorGrid5x5.png');
check(img, {
Expand Down

0 comments on commit 11a5737

Please sign in to comment.