zig/test/standalone/empty_env/main.zig

7 lines
207 B
Zig
Raw Normal View History

const std = @import("std");
pub fn main() void {
2019-05-27 11:35:26 +08:00
const env_map = std.process.getEnvMap(std.debug.global_allocator) catch @panic("unable to get env map");
std.testing.expect(env_map.count() == 0);
}