This commit is contained in:
ge committed 2026-01-25 13:31:10 +03:00
commit 3b381ba118
10 files changed
+303

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
// vtest build: !windows
import pwd
fn test_get_by_uid() {
pw := pwd.get_by_uid(0)!
assert pw.name == 'root'
}
fn test_get_by_name() {
pw := pwd.get_by_name('root')!
assert pw.uid == 0
}
fn test_get_all() {
pws := pwd.get_all()
assert pws.len > 0
}