Skip to content

Commit 184d8b3

Browse files
committed
add missing constrtuctor test
1 parent 6110b7f commit 184d8b3

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

test/tests/core/Vec/constructorTests.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,49 @@ module.exports = function ({ cv, utils }) {
111111
assertPropsWithValue(new cv.Vec(w, x, y, z))({ w, x, y, z });
112112
});
113113
});
114+
115+
describe('Vec6', () => {
116+
it('should have int positions', () => {
117+
const u = 50;
118+
const v = 100;
119+
const w = 200;
120+
const x = 300;
121+
const y = 400;
122+
const z = 500;
123+
assertPropsWithValue(new cv.Vec(u, v, w, x, y, z))({ u, v, w, x, y, z });
124+
});
125+
126+
it('should have double positions', () => {
127+
const u = 50.99;
128+
const v = 100.12345;
129+
const w = 200.89764;
130+
const x = 300.034;
131+
const y = 400.254;
132+
const z = 500.543;
133+
assertPropsWithValue(new cv.Vec(u, v, w, x, y, z))({ u, v, w, x, y, z });
134+
});
135+
136+
it('should have negative int positions', () => {
137+
it('should have int positions', () => {
138+
const u = -50;
139+
const v = -100;
140+
const w = -200;
141+
const x = -300;
142+
const y = -400;
143+
const z = -500;
144+
assertPropsWithValue(new cv.Vec(u, v, w, x, y, z))({ u, v, w, x, y, z });
145+
});
146+
});
147+
148+
it('should have negative double positions', () => {
149+
const u = -50.99;
150+
const v = -100.12345;
151+
const w = -200.89764;
152+
const x = -300.034;
153+
const y = -400.254;
154+
const z = -500.543;
155+
assertPropsWithValue(new cv.Vec(u, v, w, x, y, z))({ u, v, w, x, y, z });
156+
});
157+
});
114158
});
115159
};

0 commit comments

Comments
 (0)