Add sanity-check unit test for RecoveryId

This is kinda silly but gets me 100% coverage from kcov
This commit is contained in:
Andrew Poelstra 2015-04-13 22:21:56 -05:00
parent f8bbc89df6
commit 1ba1f5b2ce
1 changed files with 6 additions and 0 deletions

View File

@ -506,6 +506,12 @@ mod tests {
assert_eq!(pk, new_pk); assert_eq!(pk, new_pk);
} }
#[test]
fn recid_sanity_check() {
let one = RecoveryId(1);
assert_eq!(one, one.clone());
}
#[test] #[test]
fn invalid_pubkey() { fn invalid_pubkey() {
let s = Secp256k1::new(); let s = Secp256k1::new();