Skip to content

Commit bfe2a88

Browse files
committed
organize tests in src
1 parent 81e90f7 commit bfe2a88

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

mithril-stm/src/eligibility_check.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ mod tests {
126126
q < phi
127127
}
128128

129+
// ---------------------------------------------------------------------
130+
// Property test: `test_precision_approximation`
131+
// Property test: `early_break_taylor`
132+
// ---------------------------------------------------------------------
129133
proptest! {
130134
#![proptest_config(ProptestConfig::with_cases(50))]
131135

mithril-stm/src/key_reg.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ mod tests {
8888
use rand_chacha::ChaCha20Rng;
8989
use rand_core::SeedableRng;
9090

91+
// ---------------------------------------------------------------------
92+
// Property test: `test_keyreg`
93+
// ---------------------------------------------------------------------
9194
proptest! {
9295
#[test]
9396
fn test_keyreg(stake in vec(1..1u64 << 60, 2..=10),

mithril-stm/src/multi_sig.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,29 @@ mod tests {
651651

652652
impl Eq for SigningKey {}
653653

654+
// ---------------------------------------------------------------------
655+
// Test helpers
656+
// ---------------------------------------------------------------------
657+
impl PartialEq for SigningKey {
658+
fn eq(&self, other: &Self) -> bool {
659+
self.0.to_bytes() == other.0.to_bytes()
660+
}
661+
}
662+
663+
impl Eq for SigningKey {}
664+
665+
// ---------------------------------------------------------------------
666+
// Property test: `test_sig`
667+
// Property test: `test_invalid_sig`
668+
// Property test: `test_infinity_sig`
669+
// Property test: `test_infinity_vk`
670+
// Property test: `test_keyreg_with_infinity_vk`
671+
// Property test: `test_aggregate_sig`
672+
// Property test: `test_eval_sanity_check`
673+
// Property test: `serialize_deserialize_vk`
674+
// Property test: `serialize_deserialize_sk`
675+
// Property test: `batch_verify`
676+
// ---------------------------------------------------------------------
654677
proptest! {
655678
#![proptest_config(ProptestConfig::with_cases(1000))]
656679

0 commit comments

Comments
 (0)