ARver/tests
arcctgx 81265e4142 fix length calculation of non-CDDA input files
The integer division is only correct in case of CDDA rips, where the
audio file length is guaranteed to be a multiple of the CD sector size.
For non-CDDA files the quotient must be rounded up to the next integer
to correctly account for fractional CDDA sectors (e.g. 700 audio frames
would require two 588-frame CDDA sectors, not one). Rounding the result
does not change the behavior for CDDA input data (no fractional sectors
are expected by definition).

This is not really a problem because ARver is designed to be used with
CDDA rips, and non-CDDA files were expected to fail verification anyway.
But the clearly incorrect method of converting the audio frames to CDDA
sectors was confusing when reading the code, even if it did not result
in runtime errors.
2025-06-11 00:08:19 +02:00
..
data test loading samples from a corrupted audio file 2024-07-14 22:51:59 +02:00
_audio_test.py rename nframes() and get_nframes() 2025-02-10 21:53:13 +01:00
checksums_test.py test CRC32 calculation on big endian audio data 2024-04-14 16:53:08 +02:00
database_test.py add parser tests using real database responses 2024-06-23 23:53:06 +02:00
discinfo_test.py implement DiscInfo.from_track_lengths() 2024-07-07 20:10:26 +02:00
helpers_test.py fix length calculation of non-CDDA input files 2025-06-11 00:08:19 +02:00
properties_test.py rename one test 2025-06-02 20:57:12 +02:00