1 ! Copyright (C) 2008 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: tools.test unix.users kernel strings math ;
7 [ ] [ all-users drop ] unit-test
11 [ t ] [ real-user-name string? ] unit-test
12 [ t ] [ effective-user-name string? ] unit-test
14 [ t ] [ real-user-id integer? ] unit-test
15 [ t ] [ effective-user-id integer? ] unit-test
17 [ ] [ real-user-id set-real-user ] unit-test
18 [ ] [ effective-user-id set-effective-user ] unit-test
20 [ ] [ real-user-name [ ] with-real-user ] unit-test
21 [ ] [ real-user-id [ ] with-real-user ] unit-test
23 [ ] [ effective-user-name [ ] with-effective-user ] unit-test
24 [ ] [ effective-user-id [ ] with-effective-user ] unit-test
26 [ ] [ [ ] with-user-cache ] unit-test
28 [ "9999999999999999999" ] [ 9999999999999999999 user-name ] unit-test
30 [ f ] [ 89898989898989898989898989898 user-passwd ] unit-test