diff options
author | Hendrik Brucker <hendrik.brucker@mail.de> | 2022-11-05 02:28:00 +0100 |
---|---|---|
committer | Hendrik Brucker <hendrik.brucker@mail.de> | 2022-11-05 02:28:00 +0100 |
commit | f906ff8f8980d4e75b7e21ae1598a64faa3b2efd (patch) | |
tree | 216e2957860044cd208551894a67d766f1fdd638 /tests/scene/test_audio_stream_wav.h | |
parent | ec521a405a89a1b80a9989c09dcc2f2e7763ddcf (diff) |
[Tests] Replace Math::is_equal_approx with == and doctest::Approx
Diffstat (limited to 'tests/scene/test_audio_stream_wav.h')
-rw-r--r-- | tests/scene/test_audio_stream_wav.h | 2 |
1 files changed, 1 insertions, 1 deletions
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") { |