improving tests
All checks were successful
Build / build (push) Successful in 2m31s
Test / build (push) Successful in 6m48s

This commit is contained in:
2026-03-06 22:34:47 +01:00
parent e09a41754f
commit 7bf671d974
10 changed files with 98 additions and 45 deletions

View File

@@ -45,7 +45,15 @@ test "Inputs" {
defer allocator.free(shader);
const code = try compileNzsl(allocator, shader);
defer allocator.free(code);
try case.expectOutputWithInput(T, L, code, "color", &@as([L]T, input.val), "pos", &@as([L]T, input.val));
try case.expect(.{
.source = code,
.inputs = &.{
std.mem.asBytes(&@as([L]T, input.val)),
},
.expected_outputs = &.{
std.mem.asBytes(&@as([L]T, input.val)),
},
});
}
}
}