Skip to content

Commit

Permalink
Fixed test case
Browse files Browse the repository at this point in the history
libsndfile now supports mp3 audio, from v1.1.0
  • Loading branch information
chrisn committed Dec 24, 2022
1 parent 216dcaf commit 91f124a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/SndFileAudioFileReaderTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,19 +285,19 @@ TEST_F(SndFileAudioFileReaderTest, shouldNotProcessFileMoreThanOnce)

TEST_F(SndFileAudioFileReaderTest, shouldReportErrorIfNotAWavFile)
{
const char* filename = "../test/data/test_file_stereo.mp3";
const char* filename = "../test/data/test_file_stereo_16bit_64spp_wav.dat";

bool result = reader_.open(filename);
ASSERT_FALSE(result);

ASSERT_THAT(output.str(), StrEq(""));
ASSERT_THAT(error.str(), AnyOf(
StrEq(
"Failed to read file: ../test/data/test_file_stereo.mp3\n"
"Failed to read file: ../test/data/test_file_stereo_16bit_64spp_wav.dat\n"
"File contains data in an unknown format.\n"
),
StrEq(
"Failed to read file: ../test/data/test_file_stereo.mp3\n"
"Failed to read file: ../test/data/test_file_stereo_16bit_64spp_wav.dat\n"
"Format not recognised.\n"
)
));
Expand Down

0 comments on commit 91f124a

Please sign in to comment.