Skip to content

Commit ec3aff8

Browse files
committed
reduce tests count
1 parent d26aa2d commit ec3aff8

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

iTriangle/src/int/monotone/flat/triangulator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ mod tests {
875875
#[test]
876876
fn test_random_4() {
877877
let mut raw = IntTriangulation::<u32>::default();
878-
for _ in 0..10_000 {
878+
for _ in 0..5_000 {
879879
let path = random(30, 50);
880880
let shape = vec![path];
881881
if let Some(first) = shape

iTriangle/src/int/monotone/net/triangulator.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ mod tests {
12311231

12321232
#[test]
12331233
fn test_random_0() {
1234-
for _ in 0..100_000 {
1234+
for _ in 0..20_000 {
12351235
let path = random(8, 5);
12361236
let shape = vec![path];
12371237
if let Some(first) = shape
@@ -1251,7 +1251,7 @@ mod tests {
12511251

12521252
#[test]
12531253
fn test_random_1() {
1254-
for _ in 0..100_000 {
1254+
for _ in 0..20_000 {
12551255
let path = random(10, 6);
12561256
let shape = vec![path];
12571257
if let Some(first) = shape
@@ -1271,7 +1271,7 @@ mod tests {
12711271

12721272
#[test]
12731273
fn test_random_2() {
1274-
for _ in 0..100_000 {
1274+
for _ in 0..20_000 {
12751275
let path = random(10, 12);
12761276
let shape = vec![path];
12771277
if let Some(first) = shape
@@ -1291,7 +1291,7 @@ mod tests {
12911291

12921292
#[test]
12931293
fn test_random_3() {
1294-
for _ in 0..50_000 {
1294+
for _ in 0..10_000 {
12951295
let path = random(20, 20);
12961296
let shape = vec![path];
12971297
if let Some(first) = shape
@@ -1311,7 +1311,7 @@ mod tests {
13111311

13121312
#[test]
13131313
fn test_random_4() {
1314-
for _ in 0..10_000 {
1314+
for _ in 0..2_000 {
13151315
let path = random(30, 50);
13161316
let shape = vec![path];
13171317
if let Some(first) = shape
@@ -1331,7 +1331,7 @@ mod tests {
13311331

13321332
#[test]
13331333
fn test_random_5() {
1334-
for _ in 0..2_000 {
1334+
for _ in 0..1_000 {
13351335
let main = random(50, 20);
13361336
let mut shape = vec![main];
13371337
for _ in 0..10 {
@@ -1357,7 +1357,7 @@ mod tests {
13571357
fn test_random_6() {
13581358
let shape = vec![path(&[[-10, 0], [0, -10], [10, 0], [0, 10]])];
13591359
let shape_area = shape.area_two();
1360-
for _ in 0..100_000 {
1360+
for _ in 0..20_000 {
13611361
let points = random_points(5, 10);
13621362

13631363
let mut raw = RawIntTriangulation::default();
@@ -1372,7 +1372,7 @@ mod tests {
13721372
fn test_random_7() {
13731373
let shapes = vec![vec![path(&[[-5, 0], [0, -5], [5, 0], [0, 5]])]];
13741374
let shape_area = shapes.area_two();
1375-
for _ in 0..100_000 {
1375+
for _ in 0..20_000 {
13761376
let points = random_points(8, 2);
13771377
let group = shapes.group_by_shapes(&points);
13781378

@@ -1386,7 +1386,7 @@ mod tests {
13861386

13871387
#[test]
13881388
fn test_random_8() {
1389-
for _ in 0..100_000 {
1389+
for _ in 0..20_000 {
13901390
let points = random_points(15, 1);
13911391
let shape = random(10, 4);
13921392

@@ -1410,7 +1410,7 @@ mod tests {
14101410

14111411
#[test]
14121412
fn test_random_9() {
1413-
for _ in 0..100_000 {
1413+
for _ in 0..20_000 {
14141414
let points = random_points(10, 2);
14151415
let shape = random(10, 4);
14161416

@@ -1434,7 +1434,7 @@ mod tests {
14341434

14351435
#[test]
14361436
fn test_random_10() {
1437-
for _ in 0..50_000 {
1437+
for _ in 0..5_000 {
14381438
let points = random_points(10, 8);
14391439
let shape = random(10, 8);
14401440

@@ -1458,7 +1458,7 @@ mod tests {
14581458

14591459
#[test]
14601460
fn test_random_11() {
1461-
for _ in 0..10_000 {
1461+
for _ in 0..2_000 {
14621462
let main = random(50, 20);
14631463
let mut shape = vec![main];
14641464
for _ in 0..10 {

0 commit comments

Comments
 (0)