Skip to content

Commit d26aa2d

Browse files
committed
reduce test count
1 parent b5105d7 commit d26aa2d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

iTriangle/src/int/earcut/earcut_64.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,7 @@ mod tests {
15471547

15481548
#[test]
15491549
fn test_random_0() {
1550-
for _ in 0..100_000 {
1550+
for _ in 0..20_000 {
15511551
if let Some(first) = random(8, 5)
15521552
.simplify(FillRule::NonZero, IntOverlayOptions::keep_output_points())
15531553
.first()
@@ -1563,7 +1563,7 @@ mod tests {
15631563

15641564
#[test]
15651565
fn test_random_1() {
1566-
for _ in 0..100_000 {
1566+
for _ in 0..20_000 {
15671567
if let Some(first) = random(8, 7)
15681568
.simplify(FillRule::NonZero, IntOverlayOptions::keep_output_points())
15691569
.first()
@@ -1579,7 +1579,7 @@ mod tests {
15791579

15801580
#[test]
15811581
fn test_random_2() {
1582-
for _ in 0..100_000 {
1582+
for _ in 0..20_000 {
15831583
if let Some(first) = random(8, 10)
15841584
.simplify(FillRule::NonZero, IntOverlayOptions::keep_output_points())
15851585
.first()
@@ -1595,7 +1595,7 @@ mod tests {
15951595

15961596
#[test]
15971597
fn test_random_3() {
1598-
for _ in 0..500_000 {
1598+
for _ in 0..100_000 {
15991599
if let Some(first) = random(8, 12)
16001600
.simplify(FillRule::NonZero, IntOverlayOptions::keep_output_points())
16011601
.first()
@@ -1611,7 +1611,7 @@ mod tests {
16111611

16121612
#[test]
16131613
fn test_random_4() {
1614-
for _ in 0..40_000 {
1614+
for _ in 0..10_000 {
16151615
if let Some(first) = random(16, 32)
16161616
.simplify(FillRule::NonZero, IntOverlayOptions::keep_output_points())
16171617
.first()
@@ -1628,7 +1628,7 @@ mod tests {
16281628

16291629
#[test]
16301630
fn test_random_5() {
1631-
for _ in 0..20_000 {
1631+
for _ in 0..5_000 {
16321632
if let Some(first) = random(16, 48)
16331633
.simplify(FillRule::NonZero, IntOverlayOptions::keep_output_points())
16341634
.first()
@@ -1645,7 +1645,7 @@ mod tests {
16451645

16461646
#[test]
16471647
fn test_random_6() {
1648-
for _ in 0..10_000 {
1648+
for _ in 0..2_000 {
16491649
if let Some(first) = random(16, 64)
16501650
.simplify(FillRule::NonZero, IntOverlayOptions::keep_output_points())
16511651
.first()

0 commit comments

Comments
 (0)