blob: cb5d2e7b77d0bab90d4d2585fc5d9e9e7a54f03e (
plain)
1
2
3
4
5
6
7
8
|
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);
}
|