adding unit tests; ci skip
All checks were successful
Build / build (push) Has been skipped
Test / build (push) Has been skipped

This commit is contained in:
2026-01-18 02:16:35 +01:00
parent 8bdea7b1fc
commit bb40e5b33f
6 changed files with 239 additions and 58 deletions

View File

@@ -17,8 +17,8 @@ pub fn main() !void {
defer rt.deinit(allocator);
try rt.callEntryPoint(allocator, try rt.getEntryPointByName("main"));
var output: [4]f32 = undefined;
try rt.readOutput(f32, output[0..output.len], try rt.getResultByName("color"));
var output: [4]i32 = undefined;
try rt.readOutput(i32, output[0..output.len], try rt.getResultByName("color"));
std.log.info("Output: Vec4{any}", .{output});
}
std.log.info("Successfully executed", .{});