Skip to content

Commit dd3f3e4

Browse files
committed
Split into_derivation_path tests out
The test _still_ tests multiple things. Move the `into_derivation_path` calls into a separate test.
1 parent 0c9dd31 commit dd3f3e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bitcoin/src/bip32.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,10 @@ mod tests {
11661166
let prefixed = format!("m/{}", path);
11671167
assert_eq!(prefixed.parse::<DerivationPath>().unwrap().0, expected);
11681168
}
1169+
}
11691170

1171+
#[test]
1172+
fn parse_derivation_path_same_as_into_derivation_path() {
11701173
let s = "0'/50/3'/5/545456";
11711174
assert_eq!(s.parse::<DerivationPath>(), s.into_derivation_path());
11721175
assert_eq!(s.parse::<DerivationPath>(), s.to_string().into_derivation_path());

0 commit comments

Comments
 (0)