| 332 | } |
| 333 | |
| 334 | static void no_params(void) |
| 335 | { |
| 336 | struct json *j = json_parse(cmd, "[]"); |
| 337 | assert(param(cmd, j->buffer, j->toks, NULL)); |
| 338 | |
| 339 | j = json_parse(cmd, "[ 'unexpected' ]"); |
| 340 | assert(!param(cmd, j->buffer, j->toks, NULL)); |
| 341 | } |
| 342 | |
| 343 | /* |
| 344 | * Check to make sure there are no programming mistakes. |
no test coverage detected