1 ! Copyright (C) 2008 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: tools.test unix.groups kernel strings math ;
6 [ ] [ all-groups drop ] unit-test
8 \ all-groups must-infer
10 [ t ] [ real-group-name string? ] unit-test
11 [ t ] [ effective-group-name string? ] unit-test
13 [ t ] [ real-group-id integer? ] unit-test
14 [ t ] [ effective-group-id integer? ] unit-test
16 [ ] [ real-group-id set-real-group ] unit-test
17 [ ] [ effective-group-id set-effective-group ] unit-test
19 [ ] [ real-group-name [ ] with-real-group ] unit-test
20 [ ] [ real-group-id [ ] with-real-group ] unit-test
22 [ ] [ effective-group-name [ ] with-effective-group ] unit-test
23 [ ] [ effective-group-id [ ] with-effective-group ] unit-test
25 [ ] [ [ ] with-group-cache ] unit-test
27 [ ] [ real-group-id group-name drop ] unit-test
29 [ "888888888888888" ] [ 888888888888888 group-name ] unit-test
31 [ "please-oh-please-don't-have-a-group-named-this123lalala" group-struct ] unit-test