/* * Copyright 2016 (c) Anna Schumaker. */ #include #include #include #include #include #include void test_artist() { struct artist *artist; idle_init_sync(); filter_init(); tags_init(); while (idle_run_task()) {}; artist = artist_find("Koji Kondo"); test_equal(artist->ar_playlist, NULL); pl_artist_init(NULL); while (idle_run_task()) {}; test_not_equal(artist->ar_playlist, NULL); pl_artist_deinit(); test_equal(artist->ar_playlist, NULL); tags_deinit(); filter_deinit(); idle_deinit(); } DECLARE_UNIT_TESTS( UNIT_TEST("Artist Playlists", test_artist), );