Skip to content

Commit 1387a5b

Browse files
committed
Add regression test for #304
1 parent 61aa27f commit 1387a5b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plotters/src/coord/ranged1d/types/numeric.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,4 +443,11 @@ mod test {
443443
let points = coord.key_points(2);
444444
assert!(points.len() <= 2);
445445
}
446+
447+
#[test]
448+
fn regression_test_issue_304_intmax_keypoint_no_panic() {
449+
let coord : RangedCoordu32 = (0..u32::MAX).into();
450+
let p = coord.key_points(10);
451+
assert!(p.len() > 0 && p.len() <= 10);
452+
}
446453
}

0 commit comments

Comments
 (0)