3.10.2 Explicitly test RecommendedTranscript

This commit is contained in:
Luke Parker 2023-03-15 19:55:07 -04:00
parent ad470bc969
commit 669d2dbffc
No known key found for this signature in database
3 changed files with 9 additions and 0 deletions

1
Cargo.lock generated
View file

@ -2436,6 +2436,7 @@ dependencies = [
"blake2",
"digest 0.10.6",
"merlin 3.0.0",
"sha2 0.10.6",
]
[[package]]

View file

@ -19,6 +19,7 @@ blake2 = { version = "0.10", optional = true }
merlin = { version = "3", optional = true }
[dev-dependencies]
sha2 = "0.10"
blake2 = "0.10"
[features]

View file

@ -85,9 +85,16 @@ where
#[test]
fn test_digest() {
test_transcript::<crate::DigestTranscript<sha2::Sha256>>();
test_transcript::<crate::DigestTranscript<blake2::Blake2b512>>();
}
#[cfg(feature = "recommended")]
#[test]
fn test_recommended() {
test_transcript::<crate::RecommendedTranscript>();
}
#[cfg(feature = "merlin")]
#[test]
fn test_merlin() {