Skip to content

Commit

Permalink
Add test for sample format array
Browse files Browse the repository at this point in the history
  • Loading branch information
chubei-urus committed Apr 2, 2024
1 parent 35397cd commit 4570920
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file added img/array-sample-format.tif
Binary file not shown.
8 changes: 8 additions & 0 deletions src/__tests__/decode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,14 @@ const files: TiffFile[] = [
components: 1,
alpha: false,
},
{
name: "array-sample-format.tif",
width: 2,
height: 2,
bitsPerSample: 32,
components: 3,
alpha: false,
}
];
const cases = files.map(
(file) => [file.name, file, readImage(file.name)] as const,
Expand Down

0 comments on commit 4570920

Please sign in to comment.