diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-10-10 13:34:47 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-10-10 13:34:47 +0200 |
commit | 713db415a9bf47ffb665ee16892121829e067168 (patch) | |
tree | 38bd1e3a9ae84e7b96c128aae8cd64c92254cf1c /src/util/test_age_restriction.c | |
parent | cbc2beb113c7209ffc629fe683dab7b531f0f1b1 (diff) | |
download | exchange-713db415a9bf47ffb665ee16892121829e067168.tar.xz |
[pq] cleanup of amount tuple type handling
- add counter for tuple elements to struct
- use GNUNET_memcpy instead of casting
also, fix format string in test for age_restriction
Diffstat (limited to 'src/util/test_age_restriction.c')
-rw-r--r-- | src/util/test_age_restriction.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/src/util/test_age_restriction.c b/src/util/test_age_restriction.c index 02b16c3e6..61499e5e0 100644 --- a/src/util/test_age_restriction.c +++ b/src/util/test_age_restriction.c @@ -80,24 +80,24 @@ test_groups (void) .bits = 1 | 1 << 5 | 1 << 13 | 1 << 23, - .group = { 0, 0, 0, 0, 0, - 1, 1, 1, 1, 1, 1, 1, 1, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 } + .group = { 0, 0, 0, 0, 0, + 1, 1, 1, 1, 1, 1, 1, 1, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 } }, { .bits = 1 | 1 << 8 | 1 << 10 | 1 << 12 | 1 << 14 | 1 << 16 | 1 << 18 | 1 << 21, - .group = { 0, 0, 0, 0, 0, 0, 0, 0, - 1, 1, - 2, 2, - 3, 3, - 4, 4, - 5, 5, - 6, 6, 6, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7} + .group = { 0, 0, 0, 0, 0, 0, 0, 0, + 1, 1, + 2, 2, + 3, 3, + 4, 4, + 5, 5, + 6, 6, 6, + 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7} } @@ -326,9 +326,8 @@ test_attestation (void) &seed, &acp[0]); printf ( - "commit(age:%d) == %d; proof.num: %ld; age_group: %d\n", + "commit(age:%d); proof.num: %ld; age_group: %d\n", age, - ret, acp[0].proof.num, age_group); |