diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-08-17 17:37:56 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-08-17 17:37:56 +0200 |
commit | ec43082b1adfa394184900d49f5fe816dba749ec (patch) | |
tree | 2c542044512484a9a29e15d1cfb9c3fef7129cb6 /test_brandt.c | |
parent | 6eb35ae72f4e579bd094f630b6b9d3d042432ae3 (diff) |
add start callback and further basic tests
Diffstat (limited to 'test_brandt.c')
-rw-r--r-- | test_brandt.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test_brandt.c b/test_brandt.c index 17f1d10..c5a8d3b 100644 --- a/test_brandt.c +++ b/test_brandt.c @@ -43,6 +43,7 @@ run_new_join (void *arg) ad_seller = BRANDT_new (NULL, NULL, NULL, + NULL, &desc, &desc_len, description, @@ -75,6 +76,21 @@ run_new_join (void *arg) return; } + if (ad_seller->k != ad_bidder->k || + ad_seller->m != ad_bidder->m || + ad_seller->outcome_public != ad_bidder->outcome_public || + ad_seller->time_start.abs_value_us + != ad_bidder->time_start.abs_value_us || + ad_seller->time_round.rel_value_us + != ad_bidder->time_round.rel_value_us || + !ad_seller->seller_mode || + ad_bidder->seller_mode) + { + weprintf ("error/mismatch in basic auction data"); + *ret = 0; + return; + } + BRANDT_destroy (ad_seller); BRANDT_destroy (ad_bidder); |