From ec43082b1adfa394184900d49f5fe816dba749ec Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Wed, 17 Aug 2016 17:37:56 +0200 Subject: add start callback and further basic tests --- test_brandt.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test_brandt.c') diff --git a/test_brandt.c b/test_brandt.c index 17f1d10..c5a8d3b 100644 --- a/test_brandt.c +++ b/test_brandt.c @@ -41,6 +41,7 @@ run_new_join (void *arg) size_t desc_len; ad_seller = BRANDT_new (NULL, + NULL, NULL, NULL, &desc, @@ -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); -- cgit v1.2.3