diff options
Diffstat (limited to 'test/enginelibrary/track_test.cpp')
-rw-r--r-- | test/enginelibrary/track_test.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/test/enginelibrary/track_test.cpp b/test/enginelibrary/track_test.cpp index 095b0cb..9dd032e 100644 --- a/test/enginelibrary/track_test.cpp +++ b/test/enginelibrary/track_test.cpp @@ -53,13 +53,13 @@ static fs::path create_temp_dir() return temp_dir; } -static void remove_temp_dir(const fs::path &temp_dir) +static void remove_temp_dir(const fs::path& temp_dir) { fs::remove_all(temp_dir); std::cout << "Removed temp dir at " << temp_dir.string() << std::endl; } -static void populate_example_track_1(djinterop::track &t) +static void populate_example_track_1(djinterop::track& t) { t.set_track_number(1); t.set_bpm(123); @@ -70,18 +70,18 @@ static void populate_example_track_1(djinterop::track &t) t.set_genre("Tech House"s); t.set_comment("Purchased at Beatport.com"s); t.set_publisher("Stereo Productions"s); - t.set_composer(std::nullopt); + t.set_composer(djinterop::stdx::nullopt); t.set_key(djinterop::musical_key::a_minor); t.set_relative_path("../01 - Dennis Cruz - Mad (Original Mix).mp3"); t.set_last_modified_at(c::system_clock::time_point{c::seconds{1509371790}}); t.set_bitrate(320); - t.set_last_played_at(std::nullopt); + t.set_last_played_at(djinterop::stdx::nullopt); t.set_last_accessed_at(c::system_clock::time_point{c::seconds{1509321600}}); - t.set_import_info(std::nullopt); + t.set_import_info(djinterop::stdx::nullopt); t.set_album_art_id(2); } -static void check_track_1(djinterop::track &t) +static void check_track_1(djinterop::track& t) { BOOST_CHECK(t.is_valid()); BOOST_CHECK_EQUAL(*t.track_number(), 1); @@ -114,7 +114,7 @@ static void check_track_1(djinterop::track &t) BOOST_CHECK_EQUAL(*t.album_art_id(), 2); } -static void populate_example_track_2(djinterop::track &t) +static void populate_example_track_2(djinterop::track& t) { t.set_track_number(3); t.set_bpm(128); @@ -137,7 +137,7 @@ static void populate_example_track_2(djinterop::track &t) t.set_album_art_id(1); } -static void check_track_2(djinterop::track &t) +static void check_track_2(djinterop::track& t) { BOOST_CHECK(t.is_valid()); BOOST_CHECK_EQUAL(*t.track_number(), 3); @@ -312,4 +312,3 @@ BOOST_AUTO_TEST_CASE(op_copy_assign__saved_track__copied_fields) check_track_1(copy); remove_temp_dir(temp_dir); } - |