We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 410b4d5 commit a1f510cCopy full SHA for a1f510c
1 file changed
packages/typegpu/tests/vector.test.ts
@@ -198,6 +198,13 @@ describe('vec2i', () => {
198
expectTypeOf(x).toBeNumber();
199
expectTypeOf(y).toBeNumber();
200
});
201
+
202
+ it('can be spread', () => {
203
+ const vec = d.vec2i(5, 6);
204
+ const result = [...vec];
205
+ expectTypeOf(result).toEqualTypeOf<number[]>();
206
+ expect(result).toStrictEqual([5, 6]);
207
+ });
208
209
210
describe('vec2<bool>', () => {
0 commit comments