mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
14 lines
214 B
Zig
14 lines
214 B
Zig
const std = @import("std");
|
|
const builtin = @import("builtin");
|
|
const expect = std.testing.expect;
|
|
|
|
test "builtin.is_test" {
|
|
try expect(isATest());
|
|
}
|
|
|
|
fn isATest() bool {
|
|
return builtin.is_test;
|
|
}
|
|
|
|
// test
|