in reply to Re^3: Automatic generation of tests
in thread Automatic generation of tests
I'd want to somehow encode that so that it could spew out the tests to make sure it dies if the number of arguments is wrong or if the one significant argument matches /\W/. This would be several tests. I would then add tests manually to make sure it dies if the group already exists, and to make sure it creates a group correctly.=item addgroup Takes one parameter, which may optionally be named 'group'. We detect whether it is a named parameter or not by checking for the presence of 'group' followed by anything else in the arguments. This should be a valid groupname (ie consists solely of word characters) which does not exist. If that's OK, an empty group is created. All errors are fatal.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Automatic generation of tests
by adrianh (Chancellor) on Feb 25, 2004 at 11:54 UTC | |
by Jenda (Abbot) on Feb 25, 2004 at 14:56 UTC | |
by adrianh (Chancellor) on Feb 26, 2004 at 12:02 UTC |