From d9c8d23899e47127a5f1a0d8ce853f8c588e2db8 Mon Sep 17 00:00:00 2001 From: EFanZh Date: Mon, 19 Aug 2024 21:58:37 +0800 Subject: [PATCH] Cover more codes --- src/problem_1938_maximum_genetic_difference_query/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/problem_1938_maximum_genetic_difference_query/mod.rs b/src/problem_1938_maximum_genetic_difference_query/mod.rs index 5b136b4c..b18732b2 100644 --- a/src/problem_1938_maximum_genetic_difference_query/mod.rs +++ b/src/problem_1938_maximum_genetic_difference_query/mod.rs @@ -19,6 +19,10 @@ mod tests { (&[-1, 0, 0, 0, 3], &[[4, 6], [0, 0], [0, 3], [1, 8], [4, 0]]), &[6, 0, 3, 9, 4], ), + ( + (&[2, -1, 1, 4, 1], &[[1, 10], [2, 11], [0, 9], [1, 8], [1, 2]]), + &[11, 10, 11, 9, 3], + ), ]; for ((parents, queries), expected) in test_cases {