Skip to content

Commit

Permalink
More stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Oct 28, 2022
1 parent cd488a1 commit 421d824
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/subcommand/wallet/identify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,15 @@ mod tests {
// - two from different ranges
// - tsv out of order
// - ranges out of order
// - many large ranges with very large tsv

#[test]
fn identify_from_tsv_none() {
assert_eq!(
identify_from_tsv(vec![(outpoint(1), vec![(0, 1)])], "1\n").unwrap(),
vec![]
)
}

#[test]
fn identify_from_tsv_single() {
Expand All @@ -169,10 +178,13 @@ mod tests {
}

#[test]
fn identify_from_tsv_none() {
fn identify_from_tsv_two_in_one_range() {
assert_eq!(
identify_from_tsv(vec![(outpoint(1), vec![(0, 1)])], "1\n").unwrap(),
vec![]
identify_from_tsv(vec![(outpoint(1), vec![(0, 2)])], "0\n1\n").unwrap(),
vec![
(outpoint(1), Ordinal(0), 0, "0"),
(outpoint(1), Ordinal(1), 0, "0"),
]
)
}

Expand Down

0 comments on commit 421d824

Please sign in to comment.