Skip to content

Commit

Permalink
Test parameters for benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastinas committed Jul 10, 2024
1 parent 8c4fcca commit b778f36
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/s3id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,4 +370,27 @@ mod test {
assert_eq!(verifycred(&cred, &pi, msg, &pp), Ok(()));
assert!(verifycred(&cred, &pi, b"some other message", &pp).is_err());
}

#[test]
fn parameters_for_benches() {
const NUM_ISSUERS: [usize; 3] = [4, 16, 64];
const N: [usize; 3] = [30, 40, 128];
const BIG_L: usize = 16;

for num_issuers in NUM_ISSUERS {
for n in N {
let t = num_issuers / 2 + 1;
let tprime = n / 2 + 1;

assert!(
setup(num_issuers, t, n, tprime, BIG_L).is_ok(),
"issuers {}, t {}, n {}, t' {}",
num_issuers,
t,
n,
tprime
);
}
}
}
}

0 comments on commit b778f36

Please sign in to comment.