master
1const std = @import("std");
2const math = std.math;
3const testing = std.testing;
4
5test "fn reflection" {
6 try testing.expect(@typeInfo(@TypeOf(testing.expect)).@"fn".params[0].type.? == bool);
7 try testing.expect(@typeInfo(@TypeOf(testing.tmpDir)).@"fn".return_type.? == testing.TmpDir);
8
9 try testing.expect(@typeInfo(@TypeOf(math.Log2Int)).@"fn".is_generic);
10}
11
12// test