complete the test for getgrnam
This commit is contained in:
parent
c1e20db0bd
commit
130aea7cf5
@ -632,6 +632,12 @@ test "high-level API" {
|
||||
try testing.expect(all != null);
|
||||
try testing.expectEqual(all.?.gid, 9999);
|
||||
try testing.expectEqualStrings(all.?.name, "all");
|
||||
const members = mem.sliceTo(all.?.members, null);
|
||||
try testing.expectEqual(members.len, 4);
|
||||
try testing.expectEqualStrings(mem.sliceTo(members[0].?, 0), "Name" ** 8);
|
||||
try testing.expectEqualStrings(mem.sliceTo(members[1].?, 0), "root");
|
||||
try testing.expectEqualStrings(mem.sliceTo(members[2].?, 0), "svc-bar");
|
||||
try testing.expectEqualStrings(mem.sliceTo(members[3].?, 0), "vidmantas");
|
||||
}
|
||||
|
||||
test "additionalGids" {
|
||||
|
Loading…
Reference in New Issue
Block a user