blob: 38dcde4773ceaffbec57dd950cd66120dc022e6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
|