aboutsummaryrefslogtreecommitdiff
path: root/test_brandt.c
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-09-08 20:09:22 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-09-08 20:09:22 +0200
commitde5ea20b5557870119332842ce3a31d608e0e66c (patch)
tree31f73d416b9b240941f18d5ec53121e809ab62d7 /test_brandt.c
parent14546eccb205aa844657d2c350c83f6be1289b67 (diff)
downloadlibbrandt-de5ea20b5557870119332842ce3a31d608e0e66c.tar.gz
libbrandt-de5ea20b5557870119332842ce3a31d608e0e66c.zip
private firstprice auction working in test_brandt
Diffstat (limited to 'test_brandt.c')
-rw-r--r--test_brandt.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test_brandt.c b/test_brandt.c
index 0c7e4e2..b3d9b1e 100644
--- a/test_brandt.c
+++ b/test_brandt.c
@@ -133,6 +133,17 @@ cb_result (void *auction_closure,
133 struct BRANDT_Result results[], 133 struct BRANDT_Result results[],
134 uint16_t results_len) 134 uint16_t results_len)
135{ 135{
136 uint16_t *s = (uint16_t *)auction_closure;
137
138 if (0 == results_len)
139 weprintf ("result determined by agent %d: none", *s);
140
141 for (uint16_t i = 0; i < results_len; i++)
142 weprintf ("result determined by agent %d: bidder %d got status %d with price %d",
143 *s,
144 results[i].bidder,
145 results[i].status,
146 results[i].price);
136} 147}
137 148
138 149