From dd3f3e44bc3329830aacacb252162c57858b0029 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 3 Jun 2025 12:05:03 +0100 Subject: [PATCH] Split into_derivation_path tests out The test _still_ tests multiple things. Move the `into_derivation_path` calls into a separate test. --- bitcoin/src/bip32.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bitcoin/src/bip32.rs b/bitcoin/src/bip32.rs index cce4c999f..3e7aae74a 100644 --- a/bitcoin/src/bip32.rs +++ b/bitcoin/src/bip32.rs @@ -1166,7 +1166,10 @@ mod tests { let prefixed = format!("m/{}", path); assert_eq!(prefixed.parse::().unwrap().0, expected); } + } + #[test] + fn parse_derivation_path_same_as_into_derivation_path() { let s = "0'/50/3'/5/545456"; assert_eq!(s.parse::(), s.into_derivation_path()); assert_eq!(s.parse::(), s.to_string().into_derivation_path());