|
@@ -3381,6 +3381,9 @@ test_dirutil_param_voting(void)
|
|
"abcd=20 c=60 cw=500 x-yz=-9 zzzzz=101", NULL, 0, 0);
|
|
"abcd=20 c=60 cw=500 x-yz=-9 zzzzz=101", NULL, 0, 0);
|
|
smartlist_split_string(vote4.net_params,
|
|
smartlist_split_string(vote4.net_params,
|
|
"ab=900 abcd=200 c=1 cw=51 x-yz=100", NULL, 0, 0);
|
|
"ab=900 abcd=200 c=1 cw=51 x-yz=100", NULL, 0, 0);
|
|
|
|
+ test_eq(100, networkstatus_get_param(&vote4, "x-yz", 50));
|
|
|
|
+ test_eq(222, networkstatus_get_param(&vote4, "foobar", 222));
|
|
|
|
+
|
|
smartlist_add(votes, &vote1);
|
|
smartlist_add(votes, &vote1);
|
|
smartlist_add(votes, &vote2);
|
|
smartlist_add(votes, &vote2);
|
|
smartlist_add(votes, &vote3);
|
|
smartlist_add(votes, &vote3);
|