mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
13 lines
237 B
Zig
13 lines
237 B
Zig
const std = @import("std");
|
|
const expectEqual = std.testing.expectEqual;
|
|
|
|
test {
|
|
const a = {};
|
|
const b = void{};
|
|
try expectEqual(void, @TypeOf(a));
|
|
try expectEqual(void, @TypeOf(b));
|
|
try expectEqual(a, b);
|
|
}
|
|
|
|
// test
|