From 1e1e5c388bfa3ad092d110d55af4141e1ecbea95 Mon Sep 17 00:00:00 2001 From: Nagata Kana Date: Mon, 24 Jun 2024 16:23:09 +0900 Subject: [PATCH] update tests of hld --- libs/hld/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/hld/src/lib.rs b/libs/hld/src/lib.rs index 11f2d063..7d437ff0 100644 --- a/libs/hld/src/lib.rs +++ b/libs/hld/src/lib.rs @@ -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); @@ -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); @@ -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);