Split into_derivation_path tests out

The test _still_ tests multiple things.

Move the `into_derivation_path` calls into a separate test.
This commit is contained in:
Tobin C. Harding 2025-06-03 12:05:03 +01:00
parent 0c9dd31f53
commit dd3f3e44bc
No known key found for this signature in database
GPG Key ID: 0AEF0A899E41F7DD
1 changed files with 3 additions and 0 deletions

View File

@ -1166,7 +1166,10 @@ mod tests {
let prefixed = format!("m/{}", path); let prefixed = format!("m/{}", path);
assert_eq!(prefixed.parse::<DerivationPath>().unwrap().0, expected); assert_eq!(prefixed.parse::<DerivationPath>().unwrap().0, expected);
} }
}
#[test]
fn parse_derivation_path_same_as_into_derivation_path() {
let s = "0'/50/3'/5/545456"; let s = "0'/50/3'/5/545456";
assert_eq!(s.parse::<DerivationPath>(), s.into_derivation_path()); assert_eq!(s.parse::<DerivationPath>(), s.into_derivation_path());
assert_eq!(s.parse::<DerivationPath>(), s.to_string().into_derivation_path()); assert_eq!(s.parse::<DerivationPath>(), s.to_string().into_derivation_path());