mirror of
https://github.com/ziglang/zig.git
synced 2024-11-29 00:22:33 +00:00
9 lines
187 B
Zig
9 lines
187 B
Zig
const std = @import("std");
|
|
const expect = std.testing.expect;
|
|
const c = @cImport(@cInclude("b.h"));
|
|
|
|
test "import C sub" {
|
|
const result = c.sub(2, 1);
|
|
try expect(result == 1);
|
|
}
|