Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 7b2b915

Browse files
committed
Merge #138: Clean up extended_tests::schemars unit tests
ca481ab Add newline (Tobin Harding) b2058f5 Remove pointless empty test (Tobin Harding) 3cde365 Use snake case for function name (Tobin Harding) 09b49f9 Lowercase test function name (Tobin Harding) Pull request description: This PR does trivial clean up to the unit tests in `extended_tests/schemars/main.rs`. - Patch 1: Lowercase test function name - Patch 2: Use snake case for function name - Patch 3: Remove pointless empty test - Patch 4: Add newline Work was motivated by a couple of clippy warnings, cleared by the first two patches. ACKs for top commit: apoelstra: ACK ca481ab Tree-SHA512: 1ac59475890fff2d9384861844ce64a07352f89530e84a89ceae129206911abfdb17469b4d9d8bf93e0c0d27c067f0d6a2cc0bba6f9064912cfed3fcfb598fda
2 parents fb2be02 + ca481ab commit 7b2b915

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

extended_tests/schemars/src/main.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ fn main() {}
22
#[cfg(test)]
33
mod tests {
44
use bitcoin_hashes::*;
5-
#[test]
6-
fn it_works() {}
75

86
#[test]
97
fn hash160() {
@@ -23,7 +21,7 @@ mod tests {
2321
}
2422

2523
#[test]
26-
fn HMAC_SHA512() {
24+
fn hmac_sha512() {
2725
static HASH_BYTES: [u8; 64] = [
2826
0x8b, 0x41, 0xe1, 0xb7, 0x8a, 0xd1, 0x15, 0x21, 0x11, 0x3c, 0x52, 0xff, 0x18, 0x2a,
2927
0x1b, 0x8e, 0x0a, 0x19, 0x57, 0x54, 0xaa, 0x52, 0x7f, 0xcd, 0x00, 0xa4, 0x11, 0x62,
@@ -113,7 +111,7 @@ mod tests {
113111
}
114112

115113
#[test]
116-
fn TestHash() {
114+
fn test_hash() {
117115
const TEST_MIDSTATE: [u8; 32] = [
118116
156, 224, 228, 230, 124, 17, 108, 57, 56, 179, 202, 242, 195, 15, 80, 137, 211, 243,
119117
147, 108, 71, 99, 110, 96, 125, 179, 62, 234, 221, 198, 240, 201,
@@ -158,6 +156,7 @@ mod tests {
158156
.validate(&js)
159157
.is_ok());
160158
}
159+
161160
#[test]
162161
fn sha512() {
163162
static HASH_BYTES: [u8; 64] = [

0 commit comments

Comments
 (0)