mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
13 lines
214 B
Zig
13 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
|