diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-19 00:37:31 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-22 14:34:25 +0100 |
| commit | 44cd984db9877b2a1aac3321744f7d0415f2f2e9 (patch) | |
| tree | 684fe336e2bfff84920a2c752155b5617d0d3b36 /test/config_test.cc | |
| parent | 16b3f6c6245acf9689349dbd2af7d4411f861767 (diff) | |
Sort cinemas and DKDM recipients correctly using the collator (#2950).
Diffstat (limited to 'test/config_test.cc')
| -rw-r--r-- | test/config_test.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/config_test.cc b/test/config_test.cc index 8278f55a9..a588691c6 100644 --- a/test/config_test.cc +++ b/test/config_test.cc @@ -309,8 +309,8 @@ BOOST_AUTO_TEST_CASE(read_cinemas_xml_and_write_sqlite) /* The detailed creation of sqlite3 from XML is tested in cinema_list_test.cc */ auto cinemas = test.cinemas(); BOOST_REQUIRE_EQUAL(cinemas.size(), 3U); - BOOST_CHECK_EQUAL(cinemas[0].second.name, "Great"); - BOOST_CHECK_EQUAL(cinemas[1].second.name, "classy joint"); + BOOST_CHECK_EQUAL(cinemas[0].second.name, "classy joint"); + BOOST_CHECK_EQUAL(cinemas[1].second.name, "Great"); BOOST_CHECK_EQUAL(cinemas[2].second.name, "stinking dump"); /* Add another recipient to the sqlite */ @@ -326,10 +326,10 @@ BOOST_AUTO_TEST_CASE(read_cinemas_xml_and_write_sqlite) auto cinemas = test.cinemas(); BOOST_REQUIRE_EQUAL(cinemas.size(), 4U); - BOOST_CHECK_EQUAL(cinemas[0].second.name, "Great"); - BOOST_CHECK_EQUAL(cinemas[1].second.name, "The ol' 1-seater"); - BOOST_CHECK_EQUAL(cinemas[2].second.name, "classy joint"); - BOOST_CHECK_EQUAL(cinemas[3].second.name, "stinking dump"); + BOOST_CHECK_EQUAL(cinemas[0].second.name, "classy joint"); + BOOST_CHECK_EQUAL(cinemas[1].second.name, "Great"); + BOOST_CHECK_EQUAL(cinemas[2].second.name, "stinking dump"); + BOOST_CHECK_EQUAL(cinemas[3].second.name, "The ol' 1-seater"); } } @@ -445,8 +445,8 @@ BOOST_AUTO_TEST_CASE(load_config_from_zip_with_only_xml_current) CinemaList cinema_list(cinemas_file); auto cinemas = cinema_list.cinemas(); BOOST_REQUIRE_EQUAL(cinemas.size(), 3U); - BOOST_CHECK_EQUAL(cinemas[0].second.name, "Great"); - BOOST_CHECK_EQUAL(cinemas[1].second.name, "classy joint"); + BOOST_CHECK_EQUAL(cinemas[0].second.name, "classy joint"); + BOOST_CHECK_EQUAL(cinemas[1].second.name, "Great"); BOOST_CHECK_EQUAL(cinemas[2].second.name, "stinking dump"); } @@ -480,8 +480,8 @@ BOOST_AUTO_TEST_CASE(load_config_from_zip_with_only_xml_zip) CinemaList cinema_list("build/test/hide/it/here/cinemas.sqlite3"); auto cinemas = cinema_list.cinemas(); BOOST_REQUIRE_EQUAL(cinemas.size(), 3U); - BOOST_CHECK_EQUAL(cinemas[0].second.name, "Great"); - BOOST_CHECK_EQUAL(cinemas[1].second.name, "classy joint"); + BOOST_CHECK_EQUAL(cinemas[0].second.name, "classy joint"); + BOOST_CHECK_EQUAL(cinemas[1].second.name, "Great"); BOOST_CHECK_EQUAL(cinemas[2].second.name, "stinking dump"); } |
