Skip to content

Commit

Permalink
Changes due to upgrade of Magick.Native that now uses bigint.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Dec 9, 2023
1 parent 11ed36b commit cb058ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/magick-image/auto-threshold.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('MagickImage#autoThreshold', () => {

const histogram = image.histogram();
expect(histogram.size).toBe(2);
expect(histogram.get(MagickColors.Black.toString())).toBe(39359);
expect(histogram.get(MagickColors.White.toString())).toBe(267841);
expect(histogram.get(MagickColors.Black.toString())).toBe(39359n);
expect(histogram.get(MagickColors.White.toString())).toBe(267841n);
});
});
});
4 changes: 2 additions & 2 deletions tests/magick-image/histogram.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ describe('MagickImage#histogram', () => {

expect(histogram).not.toBeNull();
expect(histogram.size).toBe(256);
expect(histogram.get(MagickColors.Red.toString())).toBe(2942);
expect(histogram.get(MagickColors.White.toString())).toBe(256244);
expect(histogram.get(MagickColors.Red.toString())).toBe(2942n);
expect(histogram.get(MagickColors.White.toString())).toBe(256244n);
});
});
});
2 changes: 1 addition & 1 deletion tests/magick-image/linear-stretch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('MagickImage#linearStretch', () => {
image.linearStretch(new Percentage(10), new Percentage(90));

const histogram = image.histogram();
expect(histogram.get('#66d4ffff')).toBe(88);
expect(histogram.get('#66d4ffff')).toBe(88n);
});
});
});

0 comments on commit cb058ec

Please sign in to comment.