@@ -155,13 +155,15 @@ TEST_CASE("Conversations", "[config][conversations]") {
155
155
156
156
auto x4 = convos2.get_blinded_1to1 (legacy_blinded_id, true );
157
157
REQUIRE (x4);
158
- CHECK (x4->blinded_session_id == " 150000000000000000000000000000000000101010111010000110100001210000" );
158
+ CHECK (x4->blinded_session_id ==
159
+ " 150000000000000000000000000000000000101010111010000110100001210000" );
159
160
CHECK (x4->last_read == now_ms);
160
161
CHECK (x4->unread );
161
162
162
163
auto x5 = convos2.get_blinded_1to1 (blinded_id, false );
163
164
REQUIRE (x5);
164
- CHECK (x5->blinded_session_id == " 255000000000000000000000000000000000101010111010000110100001210000" );
165
+ CHECK (x5->blinded_session_id ==
166
+ " 255000000000000000000000000000000000101010111010000110100001210000" );
165
167
CHECK (x5->last_read == now_ms);
166
168
CHECK (x5->unread );
167
169
@@ -260,31 +262,31 @@ TEST_CASE("Conversations", "[config][conversations]") {
260
262
seen.clear ();
261
263
for (auto it = convos.begin_1to1 (); it != convos.end (); ++it)
262
264
seen.push_back (it->session_id );
263
- CHECK (seen == std::vector<std::string>{{
265
+ CHECK (seen == std::vector<std::string>{
264
266
" 051111111111111111111111111111111111111111111111111111111111111111" ,
265
- }} );
267
+ });
266
268
267
269
seen.clear ();
268
270
for (auto it = convos.begin_communities (); it != convos.end (); ++it)
269
271
seen.emplace_back (it->base_url ());
270
- CHECK (seen == std::vector<std::string>{{
272
+ CHECK (seen == std::vector<std::string>{
271
273
" http://example.org:5678" ,
272
- }} );
274
+ });
273
275
274
276
seen.clear ();
275
277
for (auto it = convos.begin_legacy_groups (); it != convos.end (); ++it)
276
278
seen.emplace_back (it->id );
277
- CHECK (seen == std::vector<std::string>{{
279
+ CHECK (seen == std::vector<std::string>{
278
280
" 05cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" ,
279
- }} );
281
+ });
280
282
281
283
seen.clear ();
282
284
for (auto it = convos.begin_blinded_1to1 (); it != convos.end (); ++it)
283
285
seen.emplace_back (it->blinded_session_id );
284
- CHECK (seen == std::vector<std::string>{{
286
+ CHECK (seen == std::vector<std::string>{
285
287
" 150000000000000000000000000000000000101010111010000110100001210000" ,
286
288
" 2512345ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" ,
287
- }} );
289
+ });
288
290
}
289
291
290
292
TEST_CASE (" Conversations (C API)" , " [config][conversations][c]" ) {
@@ -492,18 +494,18 @@ TEST_CASE("Conversations (C API)", "[config][conversations][c]") {
492
494
convo_info_volatile_iterator_free (it);
493
495
494
496
CHECK (seen == std::vector<std::string>{
495
- { " 1-to-1: "
496
- " 051111111111111111111111111111111111111111111111111111111111111111" ,
497
- " 1-to-1: "
498
- " 055000000000000000000000000000000000000000000000000000000000000000" ,
499
- " comm: http://example.org:5678/r/sudokuroom" ,
500
- " lgr: "
501
- " 05cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" ,
502
- " b: "
503
- " 150000000000000000000000000000000000101010111010000110100001210000" ,
504
- " b: "
505
- " 2512345cccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
506
- " c" } });
497
+ " 1-to-1: "
498
+ " 051111111111111111111111111111111111111111111111111111111111111111" ,
499
+ " 1-to-1: "
500
+ " 055000000000000000000000000000000000000000000000000000000000000000" ,
501
+ " comm: http://example.org:5678/r/sudokuroom" ,
502
+ " lgr: "
503
+ " 05cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" ,
504
+ " b: "
505
+ " 150000000000000000000000000000000000101010111010000110100001210000" ,
506
+ " b: "
507
+ " 2512345cccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
508
+ " c" });
507
509
}
508
510
509
511
CHECK_FALSE (config_needs_push (conf));
@@ -543,9 +545,9 @@ TEST_CASE("Conversations (C API)", "[config][conversations][c]") {
543
545
seen.emplace_back (ogi.base_url );
544
546
}
545
547
convo_info_volatile_iterator_free (it);
546
- CHECK (seen == std::vector<std::string>{{
548
+ CHECK (seen == std::vector<std::string>{
547
549
" http://example.org:5678" ,
548
- }} );
550
+ });
549
551
550
552
seen.clear ();
551
553
convo_info_volatile_legacy_group cgi;
@@ -556,9 +558,9 @@ TEST_CASE("Conversations (C API)", "[config][conversations][c]") {
556
558
seen.emplace_back (cgi.group_id );
557
559
}
558
560
convo_info_volatile_iterator_free (it);
559
- CHECK (seen == std::vector<std::string>{{
561
+ CHECK (seen == std::vector<std::string>{
560
562
" 05cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" ,
561
- }} );
563
+ });
562
564
563
565
seen.clear ();
564
566
convo_info_volatile_blinded_1to1 bi;
@@ -569,9 +571,9 @@ TEST_CASE("Conversations (C API)", "[config][conversations][c]") {
569
571
seen.emplace_back (bi.blinded_session_id );
570
572
}
571
573
convo_info_volatile_iterator_free (it);
572
- CHECK (seen == std::vector<std::string>{{
574
+ CHECK (seen == std::vector<std::string>{
573
575
" 150000000000000000000000000000000000101010111010000110100001210000" ,
574
- }} );
576
+ });
575
577
}
576
578
577
579
TEST_CASE (" Conversation pruning" , " [config][conversations][pruning]" ) {
0 commit comments