From 69d291c621ffac5ddd55cbc82751d6ed4e281549 Mon Sep 17 00:00:00 2001 From: Arnaud Bienner Date: Mon, 18 Mar 2013 22:46:11 +0100 Subject: [PATCH] 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. --- tests/song_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/song_test.cpp b/tests/song_test.cpp index 9a89679b6..29ac779a1 100644 --- a/tests/song_test.cpp +++ b/tests/song_test.cpp @@ -150,13 +150,13 @@ TEST_F(SongTest, FMPSScore) { TemporaryResource r(":/testdata/beep.mp3"); { Song song = ReadSongFromFile(r.fileName()); - song.set_score(43); + song.set_score(87); WriteSongStatisticsToFile(song, r.fileName()); } Song new_song = ReadSongFromFile(r.fileName()); - EXPECT_EQ(43, new_song.score()); + EXPECT_EQ(87, new_song.score()); } TEST_F(SongTest, POPMRating) {