mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-19 04:50:16 +01:00
Change a test value to avoid rounding error.
IMHO it's fine as it doesn't matter if the value is changed a bit after being saved, as the difference is negligible.
This commit is contained in:
parent
b05dc7109d
commit
69d291c621
@ -150,13 +150,13 @@ TEST_F(SongTest, FMPSScore) {
|
|||||||
TemporaryResource r(":/testdata/beep.mp3");
|
TemporaryResource r(":/testdata/beep.mp3");
|
||||||
{
|
{
|
||||||
Song song = ReadSongFromFile(r.fileName());
|
Song song = ReadSongFromFile(r.fileName());
|
||||||
song.set_score(43);
|
song.set_score(87);
|
||||||
|
|
||||||
WriteSongStatisticsToFile(song, r.fileName());
|
WriteSongStatisticsToFile(song, r.fileName());
|
||||||
}
|
}
|
||||||
|
|
||||||
Song new_song = ReadSongFromFile(r.fileName());
|
Song new_song = ReadSongFromFile(r.fileName());
|
||||||
EXPECT_EQ(43, new_song.score());
|
EXPECT_EQ(87, new_song.score());
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(SongTest, POPMRating) {
|
TEST_F(SongTest, POPMRating) {
|
||||||
|
Loading…
Reference in New Issue
Block a user