Score &score) { QString path = QCoreApplication::applicationDirPath(); path += "/"; path += filename; importer.load(path.toStdString(), score); } TEST_CASE("Formats/PowerTabOldImport/SongHeader", "") { Score score; PowerTabOldImporter importer; loadTest(importer, "data/song_header.ptb", score); const SongData &data = score.getScoreInfo().getSongData(); REQUIRE(data.getTitle() == "Some Title"); REQUIRE(data.getArtist() == "Some Artist"); REQUIRE(data.isVideoRelease()); REQUIRE(data.getAuthorInfo().getComposer() == "Some Author"); REQUIRE(data.getAuthorInfo().getLyricist() == "Some Lyricist"); REQUIRE(data.getArranger() == "Some Arranger"); REQUIRE(data.getTranscriber() == "Some Transcriber"); REQUIRE(data.getCopyright() == "2001"); REQUIRE(data.getLyrics() == "Some lyrics"); REQUIRE(data.getPerformanceNotes() == "Some notes."); }