@@ -111,5 +111,49 @@ module.exports = function ({ cv, utils }) {
111
111
assertPropsWithValue ( new cv . Vec ( w , x , y , z ) ) ( { w, x, y, z } ) ;
112
112
} ) ;
113
113
} ) ;
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
+ } ) ;
114
158
} ) ;
115
159
} ;
0 commit comments