Skip to content

Commit ddaf4c3

Browse files
committed
Feature flag in tests
1 parent 3a2b201 commit ddaf4c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

curve25519-dalek/src/montgomery.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,7 @@ mod test {
714714

715715
#[test]
716716
#[cfg(feature = "alloc")]
717+
#[cfg(feature = "digest")]
717718
fn montgomery_elligator_correct() {
718719
let bytes: Vec<u8> = (0u8..32u8).collect();
719720
let bits_in: [u8; 32] = (&bytes[..]).try_into().expect("Range invariant broken");
@@ -725,6 +726,7 @@ mod test {
725726
}
726727

727728
#[test]
729+
#[cfg(feature = "digest")]
728730
fn montgomery_elligator_zero_zero() {
729731
let zero = [0u8; 32];
730732
let fe = FieldElement::from_bytes(&zero);

0 commit comments

Comments
 (0)