Skip to content

Commit 54c98d2

Browse files
committed
tests: rename Mary
1 parent 0259ac0 commit 54c98d2

File tree

3 files changed

+47
-47
lines changed

3 files changed

+47
-47
lines changed

tests/src/sample-test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ main ([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
7171
children_list children_registry;
7272

7373
// Add several members.
74-
child marry{ "Marry" };
75-
children_registry.link_tail (marry);
74+
child mary{ "Mary" };
75+
children_registry.link_tail (mary);
7676

7777
child bob{ "Bob" };
7878
children_registry.link_tail (bob);

tests/src/unit-test.cpp

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ check_intrusive_list ()
368368

369369
// The static_double_list_links objects are mt::expected to be uninitialised.
370370
// The double_list_links objects are cleared by the constructor.
371-
static kid marry{ "Marry" };
371+
static kid mary{ "Mary" };
372372
static kid bob{ "Bob" };
373373
static kid sally{ "Sally" };
374374

@@ -388,18 +388,18 @@ check_intrusive_list ()
388388
mt::expect (it == kids.end ()) << "iterator at end";
389389
});
390390

391-
mt::test_case ("Link Marry", [&] {
392-
kids.link_tail (marry);
391+
mt::test_case ("Link Mary", [&] {
392+
kids.link_tail (mary);
393393
mt::expect (!kids.empty ()) << "list not empty";
394394

395395
// auto x = kids.tail();
396-
// mt::expect(mt::eq(std::string_view{kids.tail()->name()}, "Marry"sv)) <<
397-
// "tail is Marry";
396+
// mt::expect(mt::eq(std::string_view{kids.tail()->name()}, "Mary"sv)) <<
397+
// "tail is Mary";
398398

399399
auto it = kids.begin ();
400400
mt::expect (it != kids.end ()) << "first iteration";
401-
mt::expect (mt::eq (std::string_view{ it->name () }, "Marry"sv))
402-
<< "first iteration is Marry";
401+
mt::expect (mt::eq (std::string_view{ it->name () }, "Mary"sv))
402+
<< "first iteration is Mary";
403403
++it;
404404
mt::expect (it == kids.end ()) << "iterator at end";
405405
});
@@ -409,8 +409,8 @@ check_intrusive_list ()
409409
auto it = kids.begin ();
410410
mt::expect (!kids.empty ()) << "list not empty";
411411
mt::expect (it != kids.end ()) << "first iteration";
412-
mt::expect (mt::eq (std::string_view{ it->name () }, "Marry"sv))
413-
<< "first iteration is Marry";
412+
mt::expect (mt::eq (std::string_view{ it->name () }, "Mary"sv))
413+
<< "first iteration is Mary";
414414
++it;
415415
mt::expect (it != kids.end ()) << "second iteration";
416416
mt::expect (mt::eq (std::string_view{ it->name () }, "Bob"sv))
@@ -425,8 +425,8 @@ check_intrusive_list ()
425425

426426
auto it = kids.begin ();
427427
mt::expect (it != kids.end ()) << "first iteration";
428-
mt::expect (mt::eq (std::string_view{ it->name () }, "Marry"sv))
429-
<< "first iteration is Marry";
428+
mt::expect (mt::eq (std::string_view{ it->name () }, "Mary"sv))
429+
<< "first iteration is Mary";
430430
++it;
431431
mt::expect (it != kids.end ()) << "second iteration";
432432
mt::expect (mt::eq (std::string_view{ it->name () }, "Bob"sv))
@@ -445,8 +445,8 @@ check_intrusive_list ()
445445

446446
auto it = kids.begin ();
447447
mt::expect (it != kids.end ()) << "first iteration";
448-
mt::expect (mt::eq (std::string_view{ it->name () }, "Marry"sv))
449-
<< "first iteration is Marry";
448+
mt::expect (mt::eq (std::string_view{ it->name () }, "Mary"sv))
449+
<< "first iteration is Mary";
450450
++it;
451451
mt::expect (it != kids.end ()) << "second iteration";
452452
mt::expect (mt::eq (std::string_view{ it->name () }, "Sally"sv))
@@ -455,8 +455,8 @@ check_intrusive_list ()
455455
mt::expect (it == kids.end ()) << "iterator at end";
456456
});
457457

458-
mt::test_case ("Unlink Marry", [&] {
459-
marry.unlink ();
458+
mt::test_case ("Unlink Mary", [&] {
459+
mary.unlink ();
460460
mt::expect (!kids.empty ()) << "list not empty";
461461

462462
auto it = kids.begin ();
@@ -467,14 +467,14 @@ check_intrusive_list ()
467467
mt::expect (it == kids.end ()) << "iterator at end";
468468
});
469469

470-
mt::test_case ("Link Marry at head", [&] {
471-
kids.link_head (marry);
470+
mt::test_case ("Link Mary at head", [&] {
471+
kids.link_head (mary);
472472
mt::expect (!kids.empty ()) << "list not empty";
473473

474474
auto it = kids.begin ();
475475
mt::expect (it != kids.end ()) << "first iteration";
476-
mt::expect (mt::eq (std::string_view{ it->name () }, "Marry"sv))
477-
<< "first iteration is Marry";
476+
mt::expect (mt::eq (std::string_view{ it->name () }, "Mary"sv))
477+
<< "first iteration is Mary";
478478
++it;
479479
mt::expect (it != kids.end ()) << "second iteration";
480480
mt::expect (mt::eq (std::string_view{ it->name () }, "Sally"sv))
@@ -483,8 +483,8 @@ check_intrusive_list ()
483483
mt::expect (it == kids.end ()) << "iterator at end";
484484
});
485485

486-
mt::test_case ("Unlink Marry", [&] {
487-
marry.unlink ();
486+
mt::test_case ("Unlink Mary", [&] {
487+
mary.unlink ();
488488
mt::expect (!kids.empty ()) << "list not empty";
489489

490490
auto it = kids.begin ();
@@ -502,8 +502,8 @@ check_intrusive_list ()
502502
mt::expect (it == kids.end ()) << "iterator at end";
503503
});
504504

505-
mt::test_case ("Link Marry again", [&] {
506-
kids.link_tail (marry);
505+
mt::test_case ("Link Mary again", [&] {
506+
kids.link_tail (mary);
507507
mt::expect (!kids.empty ()) << "list not empty";
508508

509509
auto it = kids.begin ();

website/docs/developer/_project/_test-details.mdx

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ test 1
1919
1: Working Directory: /Users/ilg/MyProjects/micro-os-plus.github/xPacks/utils-lists-xpack.git/tests/build/native-cmake-sys-debug/platform-bin
2020
1: Test timeout computed to be: 10000000
2121
1: micro_os_plus::trace::initialize()
22-
1: Marry
22+
1: Mary
2323
1: Bob
2424
1: Sally
2525
1:
26-
1: Marry
26+
1: Mary
2727
1: Sally
2828
1/2 Test #1: sample-test ...................... Passed 0.24 sec
2929
```
@@ -155,47 +155,47 @@ test 2
155155
2: • Static intrusive list2 - test suite started
156156
2:
157157
2: ✓ Empty - test case passed (3 checks)
158-
2: ✓ Link Marry - test case passed (4 checks)
158+
2: ✓ Link Mary - test case passed (4 checks)
159159
2: ✓ Link Bob - test case passed (6 checks)
160160
2: ✓ Link Sally - test case passed (8 checks)
161161
2: ✓ Unlink Bob - test case passed (6 checks)
162-
2: ✓ Unlink Marry - test case passed (4 checks)
163-
2: ✓ Link Marry at head - test case passed (6 checks)
164-
2: ✓ Unlink Marry - test case passed (4 checks)
162+
2: ✓ Unlink Mary - test case passed (4 checks)
163+
2: ✓ Link Mary at head - test case passed (6 checks)
164+
2: ✓ Unlink Mary - test case passed (4 checks)
165165
2: ✓ Unlink Sally - test case passed (2 checks)
166-
2: ✓ Link Marry again - test case passed (2 checks)
166+
2: ✓ Link Mary again - test case passed (2 checks)
167167
2: ✓ Clear - test case passed (2 checks)
168168
2:
169169
2: ✓ Static intrusive list2 - test suite passed (47 checks in 11 test cases)
170170
2:
171171
2: • Static intrusive list static nodes - test suite started
172172
2:
173173
2: ✓ Empty - test case passed (3 checks)
174-
2: ✓ Link Marry - test case passed (4 checks)
174+
2: ✓ Link Mary - test case passed (4 checks)
175175
2: ✓ Link Bob - test case passed (6 checks)
176176
2: ✓ Link Sally - test case passed (8 checks)
177177
2: ✓ Unlink Bob - test case passed (6 checks)
178-
2: ✓ Unlink Marry - test case passed (4 checks)
179-
2: ✓ Link Marry at head - test case passed (6 checks)
180-
2: ✓ Unlink Marry - test case passed (4 checks)
178+
2: ✓ Unlink Mary - test case passed (4 checks)
179+
2: ✓ Link Mary at head - test case passed (6 checks)
180+
2: ✓ Unlink Mary - test case passed (4 checks)
181181
2: ✓ Unlink Sally - test case passed (2 checks)
182-
2: ✓ Link Marry again - test case passed (2 checks)
182+
2: ✓ Link Mary again - test case passed (2 checks)
183183
2: ✓ Clear - test case passed (2 checks)
184184
2:
185185
2: ✓ Static intrusive list static nodes - test suite passed (47 checks in 11 test cases)
186186
2:
187187
2: • Intrusive list2 - test suite started
188188
2:
189189
2: ✓ Empty - test case passed (3 checks)
190-
2: ✓ Link Marry - test case passed (4 checks)
190+
2: ✓ Link Mary - test case passed (4 checks)
191191
2: ✓ Link Bob - test case passed (6 checks)
192192
2: ✓ Link Sally - test case passed (8 checks)
193193
2: ✓ Unlink Bob - test case passed (6 checks)
194-
2: ✓ Unlink Marry - test case passed (4 checks)
195-
2: ✓ Link Marry at head - test case passed (6 checks)
196-
2: ✓ Unlink Marry - test case passed (4 checks)
194+
2: ✓ Unlink Mary - test case passed (4 checks)
195+
2: ✓ Link Mary at head - test case passed (6 checks)
196+
2: ✓ Unlink Mary - test case passed (4 checks)
197197
2: ✓ Unlink Sally - test case passed (2 checks)
198-
2: ✓ Link Marry again - test case passed (2 checks)
198+
2: ✓ Link Mary again - test case passed (2 checks)
199199
2: ✓ Clear - test case passed (2 checks)
200200
2: ✓ Allocated on stack - test case passed (2 checks)
201201
2:
@@ -204,15 +204,15 @@ test 2
204204
2: • Intrusive list static nodes - test suite started
205205
2:
206206
2: ✓ Empty - test case passed (3 checks)
207-
2: ✓ Link Marry - test case passed (4 checks)
207+
2: ✓ Link Mary - test case passed (4 checks)
208208
2: ✓ Link Bob - test case passed (6 checks)
209209
2: ✓ Link Sally - test case passed (8 checks)
210210
2: ✓ Unlink Bob - test case passed (6 checks)
211-
2: ✓ Unlink Marry - test case passed (4 checks)
212-
2: ✓ Link Marry at head - test case passed (6 checks)
213-
2: ✓ Unlink Marry - test case passed (4 checks)
211+
2: ✓ Unlink Mary - test case passed (4 checks)
212+
2: ✓ Link Mary at head - test case passed (6 checks)
213+
2: ✓ Unlink Mary - test case passed (4 checks)
214214
2: ✓ Unlink Sally - test case passed (2 checks)
215-
2: ✓ Link Marry again - test case passed (2 checks)
215+
2: ✓ Link Mary again - test case passed (2 checks)
216216
2: ✓ Clear - test case passed (2 checks)
217217
2: ✓ Allocated on stack - test case passed (2 checks)
218218
2:

0 commit comments

Comments
 (0)