From f906ff8f8980d4e75b7e21ae1598a64faa3b2efd Mon Sep 17 00:00:00 2001 From: Hendrik Brucker Date: Sat, 5 Nov 2022 02:28:00 +0100 Subject: [Tests] Replace Math::is_equal_approx with == and doctest::Approx --- tests/scene/test_audio_stream_wav.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/scene/test_audio_stream_wav.h') diff --git a/tests/scene/test_audio_stream_wav.h b/tests/scene/test_audio_stream_wav.h index 4ba431dfc2..c84c66b0e6 100644 --- a/tests/scene/test_audio_stream_wav.h +++ b/tests/scene/test_audio_stream_wav.h @@ -138,7 +138,7 @@ void run_test(String file_name, AudioStreamWAV::Format data_format, bool stereo, CHECK(stream->get_data() == test_data); SUBCASE("Stream length is computed properly") { - CHECK(Math::is_equal_approx(stream->get_length(), double(wav_count / wav_rate))); + CHECK(stream->get_length() == doctest::Approx(double(wav_count / wav_rate))); } SUBCASE("Stream can be saved as .wav") { -- cgit v1.2.3