Skip to content

Commit

Permalink
test: Should not show root node in ancestors.
Browse files Browse the repository at this point in the history
  • Loading branch information
shanecelis committed Apr 23, 2024
1 parent d36e29b commit 4e784ad
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/louds/louds_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -642,22 +642,22 @@ mod child_to_ancestors_success_tests {
}

parameterized_tests! {
t1_1: ("10_0", 1, vec!(1)),

t2_1: ("10_10_0", 1, vec!(1)),
t2_2: ("10_10_0", 2, vec!(2, 1)),

t3_1: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 1, vec!(1)),
t3_2: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 2, vec!(2, 1)),
t3_3: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 3, vec!(3, 1)),
t3_4: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 4, vec!(4, 1)),
t3_5: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 5, vec!(5, 2, 1)),
t3_6: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 6, vec!(6, 4, 1)),
t3_7: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 7, vec!(7, 4, 1)),
t3_8: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 8, vec!(8, 4, 1)),
t3_9: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 9, vec!(9, 7, 4, 1)),
t3_10: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 10, vec!(10, 8, 4, 1)),
t3_11: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 11, vec!(11, 8, 4, 1)),
t1_1: ("10_0", 1, vec!()),

t2_1: ("10_10_0", 1, vec!()),
t2_2: ("10_10_0", 2, vec!(2)),

t3_1: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 1, vec!()),
t3_2: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 2, vec!(2)),
t3_3: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 3, vec!(3)),
t3_4: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 4, vec!(4)),
t3_5: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 5, vec!(5, 2)),
t3_6: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 6, vec!(6, 4)),
t3_7: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 7, vec!(7, 4)),
t3_8: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 8, vec!(8, 4)),
t3_9: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 9, vec!(9, 7, 4)),
t3_10: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 10, vec!(10, 8, 4)),
t3_11: ("10_1110_10_0_1110_0_0_10_110_0_0_0", 11, vec!(11, 8, 4)),
}
}

Expand Down

0 comments on commit 4e784ad

Please sign in to comment.