15 lines
557 B
Zig
15 lines
557 B
Zig
const platform = @import("platform");
|
|
const core = @import("platform").core;
|
|
|
|
const std = @import("std");
|
|
|
|
test "test platform integration" {
|
|
var specMap = core.SpecVariantMap.init(std.testing.allocator);
|
|
defer specMap.deinit();
|
|
try specMap.put("name", .{ .string = "testName" });
|
|
try core.start_module(&specMap, .{}, std.testing.allocator);
|
|
defer core.shutdown_module(std.testing.allocator);
|
|
try platform.start_module(&specMap, .{}, std.testing.allocator);
|
|
defer platform.shutdown_module(std.testing.allocator);
|
|
}
|