Skip to content

Commit 3bbf780

Browse files
committed
Try fix test
1 parent 558c80e commit 3bbf780

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/program.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe('Program', async () => {
177177
cl.releaseProgram(prg);
178178
});
179179

180-
it('fails as ain\'t no name for header', () => {
180+
it('fails with unnamed header', () => {
181181
const prg = cl.createProgramWithSource(context, squareKern);
182182
const prg2 = cl.createProgramWithSource(context, squareKern);
183183

@@ -194,7 +194,7 @@ describe('Program', async () => {
194194
it('fails as context is invalid', () => {
195195
U.withProgram(context, squareKern, (prg) => {
196196
assert.throws(
197-
() => cl.linkProgram(platform as unknown as cl.TClContext, null, null, [prg]),
197+
() => cl.linkProgram({} as unknown as cl.TClContext, null, null, [prg]),
198198
);
199199
});
200200
});
@@ -203,7 +203,7 @@ describe('Program', async () => {
203203
U.withProgram(context, squareKern, () => {
204204
assert.throws(
205205
() => cl.linkProgram(
206-
context, [device], null, [context as unknown as cl.TClProgram],
206+
context, [device], null, [{} as unknown as cl.TClProgram],
207207
),
208208
);
209209
});
@@ -212,7 +212,7 @@ describe('Program', async () => {
212212
it('links one compiled program', () => {
213213
U.withProgram(context, squareKern, (prg) => {
214214
cl.compileProgram(prg);
215-
const nprg = cl.linkProgram(context, [device], null, [prg]);
215+
const nprg = cl.linkProgram(context, null, null, [prg]);
216216
U.assertType(nprg, 'object');
217217
});
218218
});
@@ -265,6 +265,7 @@ describe('Program', async () => {
265265
testForType('PROGRAM_NUM_DEVICES', (v) => U.assertType(v, 'number'));
266266
testForType('PROGRAM_CONTEXT', (v) => U.assertType(v, 'object'));
267267
testForType('PROGRAM_DEVICES', (v) => U.assertType(v, 'array'));
268+
testForType('PROGRAM_BINARIES', (v) => U.assertType(v, 'array'));
268269
testForType('PROGRAM_BINARY_SIZES', (v) => U.assertType(v, 'array'));
269270
testForType('PROGRAM_SOURCE', (v) => U.assertType(v, 'string'));
270271

0 commit comments

Comments
 (0)