diff options
Diffstat (limited to 'vendor/ecdsa/tests/lib.rs')
-rw-r--r-- | vendor/ecdsa/tests/lib.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/ecdsa/tests/lib.rs b/vendor/ecdsa/tests/lib.rs new file mode 100644 index 000000000..1b622f8bd --- /dev/null +++ b/vendor/ecdsa/tests/lib.rs @@ -0,0 +1,14 @@ +//! Smoke tests which use `MockCurve` + +#![cfg(feature = "dev")] + +use elliptic_curve::dev::MockCurve; + +type Signature = ecdsa::Signature<MockCurve>; +type SignatureBytes = ecdsa::SignatureBytes<MockCurve>; + +#[test] +fn rejects_all_zero_signature() { + let all_zero_bytes = SignatureBytes::default(); + assert!(Signature::try_from(all_zero_bytes.as_ref()).is_err()); +} |