Skip to content

Commit 60cf93d

Browse files
committed
test: fix naming to better clarity
1 parent cf7732e commit 60cf93d

File tree

2 files changed

+145
-111
lines changed

2 files changed

+145
-111
lines changed

test/src/dense_qp_wrapper.cpp

Lines changed: 83 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ using T = double;
1212
using namespace proxsuite;
1313
using namespace proxsuite::proxqp;
1414

15-
DOCTEST_TEST_CASE("sparse random strongly convex qp with inequality constraints"
16-
"and empty equality constraints")
15+
DOCTEST_TEST_CASE(
16+
"ProxQP::dense: sparse random strongly convex qp with inequality constraints"
17+
"and empty equality constraints")
1718
{
1819
std::cout << "---testing sparse random strongly convex qp with inequality "
1920
"constraints "
@@ -158,8 +159,9 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with inequality constraints"
158159
<< qp.results.info.solve_time << std::endl;
159160
}
160161

161-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
162-
"inequality constraints: test update H")
162+
DOCTEST_TEST_CASE(
163+
"ProxQP::dense: sparse random strongly convex qp with equality and "
164+
"inequality constraints: test update H")
163165
{
164166
std::cout << "---testing sparse random strongly convex qp with equality and "
165167
"inequality constraints: test update H---"
@@ -294,8 +296,9 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
294296
<< qp2.results.info.solve_time << std::endl;
295297
}
296298

297-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
298-
"inequality constraints: test update A")
299+
DOCTEST_TEST_CASE(
300+
"ProxQP::dense: sparse random strongly convex qp with equality and "
301+
"inequality constraints: test update A")
299302
{
300303

301304
std::cout << "---testing sparse random strongly convex qp with equality and "
@@ -432,8 +435,9 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
432435
<< qp2.results.info.solve_time << std::endl;
433436
}
434437

435-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
436-
"inequality constraints: test update C")
438+
DOCTEST_TEST_CASE(
439+
"ProxQP::dense: sparse random strongly convex qp with equality and "
440+
"inequality constraints: test update C")
437441
{
438442

439443
std::cout << "---testing sparse random strongly convex qp with equality and "
@@ -570,8 +574,9 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
570574
<< qp2.results.info.solve_time << std::endl;
571575
}
572576

573-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
574-
"inequality constraints: test update b")
577+
DOCTEST_TEST_CASE(
578+
"ProxQP::dense: sparse random strongly convex qp with equality and "
579+
"inequality constraints: test update b")
575580
{
576581

577582
std::cout << "---testing sparse random strongly convex qp with equality and "
@@ -708,8 +713,9 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
708713
<< qp2.results.info.solve_time << std::endl;
709714
}
710715

711-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
712-
"inequality constraints: test update u")
716+
DOCTEST_TEST_CASE(
717+
"ProxQP::dense: sparse random strongly convex qp with equality and "
718+
"inequality constraints: test update u")
713719
{
714720

715721
std::cout << "---testing sparse random strongly convex qp with equality and "
@@ -849,8 +855,9 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
849855
<< qp2.results.info.solve_time << std::endl;
850856
}
851857

852-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
853-
"inequality constraints: test update g")
858+
DOCTEST_TEST_CASE(
859+
"ProxQP::dense: sparse random strongly convex qp with equality and "
860+
"inequality constraints: test update g")
854861
{
855862

856863
std::cout << "---testing sparse random strongly convex qp with equality and "
@@ -1134,8 +1141,9 @@ DOCTEST_TEST_CASE(
11341141
<< qp2.results.info.solve_time << std::endl;
11351142
}
11361143

1137-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
1138-
"inequality constraints: test update rho")
1144+
DOCTEST_TEST_CASE(
1145+
"ProxQP::dense: sparse random strongly convex qp with equality and "
1146+
"inequality constraints: test update rho")
11391147
{
11401148

11411149
std::cout << "---testing sparse random strongly convex qp with equality and "
@@ -1263,8 +1271,9 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
12631271
<< qp2.results.info.solve_time << std::endl;
12641272
}
12651273

1266-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
1267-
"inequality constraints: test update mu_eq and mu_in")
1274+
DOCTEST_TEST_CASE(
1275+
"ProxQP::dense: sparse random strongly convex qp with equality and "
1276+
"inequality constraints: test update mu_eq and mu_in")
12681277
{
12691278

12701279
std::cout << "---testing sparse random strongly convex qp with equality and "
@@ -1395,8 +1404,9 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
13951404
<< qp2.results.info.solve_time << std::endl;
13961405
}
13971406

1398-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
1399-
"inequality constraints: test warm starting")
1407+
DOCTEST_TEST_CASE(
1408+
"ProxQP::dense: sparse random strongly convex qp with equality and "
1409+
"inequality constraints: test warm starting")
14001410
{
14011411

14021412
std::cout << "---testing sparse random strongly convex qp with equality and "
@@ -1513,8 +1523,9 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
15131523
<< qp2.results.info.solve_time << std::endl;
15141524
}
15151525

1516-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
1517-
"inequality constraints: test dense init")
1526+
DOCTEST_TEST_CASE(
1527+
"ProxQP::dense: sparse random strongly convex qp with equality and "
1528+
"inequality constraints: test dense init")
15181529
{
15191530

15201531
std::cout << "---testing sparse random strongly convex qp with equality and "
@@ -1560,8 +1571,9 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
15601571
DOCTEST_CHECK(dua_res <= eps_abs);
15611572
}
15621573

1563-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
1564-
"inequality constraints: test with no initial guess")
1574+
DOCTEST_TEST_CASE(
1575+
"ProxQP::dense: sparse random strongly convex qp with equality and "
1576+
"inequality constraints: test with no initial guess")
15651577
{
15661578

15671579
std::cout << "---testing sparse random strongly convex qp with equality and "
@@ -1863,8 +1875,9 @@ DOCTEST_TEST_CASE(
18631875
<< qp2.results.info.solve_time << std::endl;
18641876
}
18651877

1866-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
1867-
"inequality constraints: test with cold start option")
1878+
DOCTEST_TEST_CASE(
1879+
"ProxQP::dense: sparse random strongly convex qp with equality and "
1880+
"inequality constraints: test with cold start option")
18681881
{
18691882

18701883
std::cout << "---testing sparse random strongly convex qp with equality and "
@@ -2352,7 +2365,7 @@ TEST_CASE(
23522365
<< qp.results.info.solve_time << std::endl;
23532366
}
23542367

2355-
TEST_CASE("sparse random strongly convex qp with equality and "
2368+
TEST_CASE("ProxQP::dense: sparse random strongly convex qp with equality and "
23562369
"inequality constraints: test multiple solve at once with equality "
23572370
"constrained initial guess")
23582371
{
@@ -2477,7 +2490,7 @@ TEST_CASE("sparse random strongly convex qp with equality and "
24772490
<< qp.results.info.solve_time << std::endl;
24782491
}
24792492

2480-
TEST_CASE("sparse random strongly convex qp with equality and "
2493+
TEST_CASE("ProxQP::dense: sparse random strongly convex qp with equality and "
24812494
"inequality constraints: test multiple solve at once with equality "
24822495
"constrained initial guess")
24832496
{
@@ -2735,7 +2748,7 @@ TEST_CASE(
27352748
<< qp.results.info.solve_time << std::endl;
27362749
}
27372750

2738-
TEST_CASE("sparse random strongly convex qp with equality and "
2751+
TEST_CASE("ProxQP::dense: sparse random strongly convex qp with equality and "
27392752
"inequality constraints: test multiple solve at once with cold start "
27402753
"initial guess")
27412754
{
@@ -2865,7 +2878,7 @@ TEST_CASE("sparse random strongly convex qp with equality and "
28652878
<< qp.results.info.solve_time << std::endl;
28662879
}
28672880

2868-
TEST_CASE("sparse random strongly convex qp with equality and "
2881+
TEST_CASE("ProxQP::dense: sparse random strongly convex qp with equality and "
28692882
"inequality constraints: test multiple solve at once with warm start")
28702883
{
28712884

@@ -2991,7 +3004,7 @@ TEST_CASE("sparse random strongly convex qp with equality and "
29913004
<< qp.results.info.solve_time << std::endl;
29923005
}
29933006

2994-
TEST_CASE("sparse random strongly convex qp with equality and "
3007+
TEST_CASE("ProxQP::dense: sparse random strongly convex qp with equality and "
29953008
"inequality constraints: warm start test from init")
29963009
{
29973010

@@ -3083,7 +3096,7 @@ TEST_CASE("sparse random strongly convex qp with equality and "
30833096

30843097
/// TESTS WITH UPDATE + INITIAL GUESS OPTIONS
30853098

3086-
TEST_CASE("sparse random strongly convex qp with equality and "
3099+
TEST_CASE("ProxQP::dense: sparse random strongly convex qp with equality and "
30873100
"inequality constraints: test update and multiple solve at once with "
30883101
"no initial guess")
30893102
{
@@ -3220,7 +3233,7 @@ TEST_CASE("sparse random strongly convex qp with equality and "
32203233
<< qp.results.info.solve_time << std::endl;
32213234
}
32223235

3223-
TEST_CASE("sparse random strongly convex qp with equality and "
3236+
TEST_CASE("ProxQP::dense: sparse random strongly convex qp with equality and "
32243237
"inequality constraints: test update + multiple solve at once with "
32253238
"equality constrained initial guess")
32263239
{
@@ -3641,7 +3654,7 @@ TEST_CASE(
36413654
<< qp.results.info.solve_time << std::endl;
36423655
}
36433656

3644-
TEST_CASE("sparse random strongly convex qp with equality and "
3657+
TEST_CASE("ProxQP::dense: sparse random strongly convex qp with equality and "
36453658
"inequality constraints: test update + multiple solve at once with "
36463659
"cold start initial guess and then cold start option")
36473660
{
@@ -3782,7 +3795,7 @@ TEST_CASE("sparse random strongly convex qp with equality and "
37823795
<< qp.results.info.solve_time << std::endl;
37833796
}
37843797

3785-
TEST_CASE("sparse random strongly convex qp with equality and "
3798+
TEST_CASE("ProxQP::dense: sparse random strongly convex qp with equality and "
37863799
"inequality constraints: test update + multiple solve at once with "
37873800
"warm start")
37883801
{
@@ -3959,7 +3972,8 @@ TEST_CASE("sparse random strongly convex qp with equality and "
39593972
<< qp.results.info.solve_time << std::endl;
39603973
}
39613974

3962-
TEST_CASE("Test initializaton with rho for different initial guess")
3975+
TEST_CASE(
3976+
"ProxQP::dense: Test initializaton with rho for different initial guess")
39633977
{
39643978

39653979
double sparsity_factor = 0.15;
@@ -4159,7 +4173,7 @@ TEST_CASE("Test initializaton with rho for different initial guess")
41594173
<< qp5.results.info.solve_time << std::endl;
41604174
}
41614175

4162-
TEST_CASE("Test g update for different initial guess")
4176+
TEST_CASE("ProxQP::dense: Test g update for different initial guess")
41634177
{
41644178

41654179
double sparsity_factor = 0.15;
@@ -4446,7 +4460,7 @@ TEST_CASE("Test g update for different initial guess")
44464460
<< qp5.results.info.solve_time << std::endl;
44474461
}
44484462

4449-
TEST_CASE("Test A update for different initial guess")
4463+
TEST_CASE("ProxQP::dense: Test A update for different initial guess")
44504464
{
44514465

44524466
double sparsity_factor = 0.15;
@@ -4733,7 +4747,7 @@ TEST_CASE("Test A update for different initial guess")
47334747
<< qp5.results.info.solve_time << std::endl;
47344748
}
47354749

4736-
TEST_CASE("Test rho update for different initial guess")
4750+
TEST_CASE("ProxQP::dense: Test rho update for different initial guess")
47374751
{
47384752

47394753
double sparsity_factor = 0.15;
@@ -5028,7 +5042,8 @@ TEST_CASE("Test rho update for different initial guess")
50285042
<< qp5.results.info.solve_time << std::endl;
50295043
}
50305044

5031-
TEST_CASE("Test g update for different warm start with previous result option")
5045+
TEST_CASE("ProxQP::dense: Test g update for different warm start with previous "
5046+
"result option")
50325047
{
50335048

50345049
double sparsity_factor = 0.15;
@@ -5147,9 +5162,10 @@ TEST_CASE("Test g update for different warm start with previous result option")
51475162
<< qp2.results.info.solve_time << std::endl;
51485163
}
51495164

5150-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
5151-
"inequality constraints: test changing default settings "
5152-
"after updates using warm start with previous results")
5165+
DOCTEST_TEST_CASE(
5166+
"ProxQP::dense: sparse random strongly convex qp with equality and "
5167+
"inequality constraints: test changing default settings "
5168+
"after updates using warm start with previous results")
51535169
{
51545170
std::cout << "---testing sparse random strongly convex qp with equality and "
51555171
"inequality constraints: test changing default settings after "
@@ -5332,9 +5348,10 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
53325348
DOCTEST_CHECK(dua_res <= eps_abs);
53335349
}
53345350

5335-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
5336-
"inequality constraints: test changing default settings "
5337-
"after updates using cold start with previous results")
5351+
DOCTEST_TEST_CASE(
5352+
"ProxQP::dense: sparse random strongly convex qp with equality and "
5353+
"inequality constraints: test changing default settings "
5354+
"after updates using cold start with previous results")
53385355
{
53395356
std::cout << "---testing sparse random strongly convex qp with equality and "
53405357
"inequality constraints: test changing default settings after "
@@ -5523,9 +5540,10 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
55235540
DOCTEST_CHECK(dua_res <= eps_abs);
55245541
}
55255542

5526-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
5527-
"inequality constraints: test changing default settings "
5528-
"after updates using equality constrained initial guess")
5543+
DOCTEST_TEST_CASE(
5544+
"ProxQP::dense: sparse random strongly convex qp with equality and "
5545+
"inequality constraints: test changing default settings "
5546+
"after updates using equality constrained initial guess")
55295547
{
55305548
std::cout << "---testing sparse random strongly convex qp with equality and "
55315549
"inequality constraints: test changing default settings after "
@@ -5714,9 +5732,10 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
57145732
DOCTEST_CHECK(dua_res <= eps_abs);
57155733
}
57165734

5717-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
5718-
"inequality constraints: test changing default settings "
5719-
"after updates using no initial guess")
5735+
DOCTEST_TEST_CASE(
5736+
"ProxQP::dense: sparse random strongly convex qp with equality and "
5737+
"inequality constraints: test changing default settings "
5738+
"after updates using no initial guess")
57205739
{
57215740
std::cout << "---testing sparse random strongly convex qp with equality and "
57225741
"inequality constraints: test changing default settings after "
@@ -5902,9 +5921,10 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
59025921
DOCTEST_CHECK(dua_res <= eps_abs);
59035922
}
59045923

5905-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
5906-
"inequality constraints: test changing default settings "
5907-
"after several solves using warm start with previous results")
5924+
DOCTEST_TEST_CASE(
5925+
"ProxQP::dense: sparse random strongly convex qp with equality and "
5926+
"inequality constraints: test changing default settings "
5927+
"after several solves using warm start with previous results")
59085928
{
59095929
std::cout << "---testing sparse random strongly convex qp with equality and "
59105930
"inequality constraints: test changing default settings after "
@@ -6132,9 +6152,10 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
61326152
}
61336153
}
61346154

6135-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
6136-
"inequality constraints: test changing default settings "
6137-
"after several solves using cold start with previous results")
6155+
DOCTEST_TEST_CASE(
6156+
"ProxQP::dense: sparse random strongly convex qp with equality and "
6157+
"inequality constraints: test changing default settings "
6158+
"after several solves using cold start with previous results")
61386159
{
61396160
std::cout << "---testing sparse random strongly convex qp with equality and "
61406161
"inequality constraints: test changing default settings after "
@@ -6587,9 +6608,10 @@ DOCTEST_TEST_CASE(
65876608
}
65886609
}
65896610

6590-
DOCTEST_TEST_CASE("sparse random strongly convex qp with equality and "
6591-
"inequality constraints: test changing default settings "
6592-
"after several solves using no initial guess")
6611+
DOCTEST_TEST_CASE(
6612+
"ProxQP::dense: sparse random strongly convex qp with equality and "
6613+
"inequality constraints: test changing default settings "
6614+
"after several solves using no initial guess")
65936615
{
65946616
std::cout << "---testing sparse random strongly convex qp with equality and "
65956617
"inequality constraints: test changing default settings after "

0 commit comments

Comments
 (0)