diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-11-23 23:14:48 +0100 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-11-23 23:14:48 +0100 |
commit | b0042a588a932883a8f03e58ffe930c6eb795d48 (patch) | |
tree | 1ffb0bb63b0e838836d15e1bbf972a81a679b219 /test_brandt.c | |
parent | ad20666c33ddee8c2348b7f22ad76a55df78ad71 (diff) | |
download | libbrandt-b0042a588a932883a8f03e58ffe930c6eb795d48.tar.gz libbrandt-b0042a588a932883a8f03e58ffe930c6eb795d48.zip |
add doc for test-case function
Diffstat (limited to 'test_brandt.c')
-rw-r--r-- | test_brandt.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test_brandt.c b/test_brandt.c index d18b17a..1540583 100644 --- a/test_brandt.c +++ b/test_brandt.c | |||
@@ -364,6 +364,18 @@ run_auction (void *arg) | |||
364 | } | 364 | } |
365 | 365 | ||
366 | 366 | ||
367 | /** | ||
368 | * Test a specific auction setup. | ||
369 | * | ||
370 | * @param[in] n number of bidders. | ||
371 | * @param[in] k number of different prices. | ||
372 | * @param[in] bids The bid array. Must contain exactly @a n elements each less | ||
373 | * than @a k. | ||
374 | * @param[in] m If 0 it's a first price auction, else an M+1st price auction | ||
375 | * specifying the M. | ||
376 | * @param[in] outcome_public 1 means public outcome, 0 means private outcome. | ||
377 | * @return 0 on success, 1 on failure | ||
378 | */ | ||
367 | static int | 379 | static int |
368 | test_auction (uint16_t n, | 380 | test_auction (uint16_t n, |
369 | uint16_t k, | 381 | uint16_t k, |