mirror of
https://github.com/ziglang/zig.git
synced 2024-12-17 08:40:19 +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
|