Skip to content

Commit

Permalink
update tests of hld
Browse files Browse the repository at this point in the history
  • Loading branch information
ngtkana committed Jun 24, 2024
1 parent 4cb93b4 commit 1e1e5c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libs/hld/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ mod tests {
fn test_fields() {
let mut rng = StdRng::seed_from_u64(42);
for _ in 0..100 {
let n = rng.gen_range(1..=10);
let n = rng.gen_range(1..=100);
let edges = random_tree(&mut rng, n);
let root = rng.gen_range(0..n);
let (hld, g) = Hld::from_edges(root, &edges);
Expand Down Expand Up @@ -355,8 +355,8 @@ mod tests {
fn test_path_decomposition() {
let mut rng = StdRng::seed_from_u64(42);
for _ in 0..100 {
let n = rng.gen_range(1..=10);
let q = rng.gen_range(1..=10);
let n = rng.gen_range(1..=100);
let q = rng.gen_range(1..=100);
let edges = random_tree(&mut rng, n);
let root = rng.gen_range(0..n);
let (hld, g) = Hld::from_edges(root, &edges);
Expand Down Expand Up @@ -457,8 +457,8 @@ mod tests {
fn test_queries() {
let mut rng = StdRng::seed_from_u64(42);
for _ in 0..100 {
let n = rng.gen_range(1..=10);
let q = rng.gen_range(1..=10);
let n = rng.gen_range(1..=100);
let q = rng.gen_range(1..=100);
let edges = random_tree(&mut rng, n);
let root = rng.gen_range(0..n);
let (hld, g) = Hld::from_edges(root, &edges);
Expand Down

0 comments on commit 1e1e5c3

Please sign in to comment.