diff options
Diffstat (limited to 'cli/tests/unit/webgpu_test.ts')
-rw-r--r-- | cli/tests/unit/webgpu_test.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cli/tests/unit/webgpu_test.ts b/cli/tests/unit/webgpu_test.ts index 4fbbd5cde..cbefa7c07 100644 --- a/cli/tests/unit/webgpu_test.ts +++ b/cli/tests/unit/webgpu_test.ts @@ -22,7 +22,7 @@ unitTest({ assert(device); const shaderCode = await Deno.readTextFile( - "cli/tests/webgpu_computepass_shader.wgsl", + "cli/tests/testdata/webgpu_computepass_shader.wgsl", ); const shaderModule = device.createShaderModule({ @@ -111,7 +111,7 @@ unitTest({ assert(device); const shaderCode = await Deno.readTextFile( - "cli/tests/webgpu_hellotriangle_shader.wgsl", + "cli/tests/testdata/webgpu_hellotriangle_shader.wgsl", ); const shaderModule = device.createShaderModule({ @@ -194,7 +194,10 @@ unitTest({ await outputBuffer.mapAsync(1); const data = new Uint8Array(outputBuffer.getMappedRange()); - assertEquals(data, await Deno.readFile("cli/tests/webgpu_hellotriangle.out")); + assertEquals( + data, + await Deno.readFile("cli/tests/testdata/webgpu_hellotriangle.out"), + ); outputBuffer.unmap(); |