Skip to content
This repository was archived by the owner on Jul 26, 2025. It is now read-only.

Commit ff7ab8e

Browse files
committed
test: add testing case for fullImage:true
1 parent 7f8731b commit ff7ab8e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/geometry/__tests__/transform.test.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,24 @@ test('compare result of clockwise rotation with opencv', () => {
3434
expect(transformed).toMatchImage('opencv/testClockwiseRot90.png');
3535
});
3636

37+
test('compare result of clockwise rotation with opencv and fullImage:true', () => {
38+
const img = testUtils.load('opencv/test.png');
39+
const transformed = img.transform(
40+
[
41+
[0, -1, img.width + 1],
42+
[1, 0, 0],
43+
],
44+
{
45+
inverse: false,
46+
fullImage: true,
47+
borderType: 'constant',
48+
borderValue: 0,
49+
interpolationType: 'bilinear',
50+
},
51+
);
52+
expect(transformed).toMatchImage('opencv/testClockwiseRot90.png');
53+
});
54+
3755
test('compare result of anti-clockwise rotation with opencv', () => {
3856
const img = testUtils.load('opencv/test.png');
3957
const transformed = img.transform(

0 commit comments

Comments
 (0)