ws-music: loop test compares durations at their own rates
This commit is contained in:
1 parent
6c3a4ad358
commit
5249d950bb
1 file changed
+1
-1
@@ -105,7 +105,7 @@ do
|
||||
local _, n = l:read(8000)
|
||||
total += n
|
||||
end
|
||||
t:check(total == 240000 and l.duration == dec.duration, "loop plays past the end")
|
||||
t:check(total == 240000 and math.abs(l.duration - dec.duration) < 0.01, "loop plays past the end")
|
||||
end
|
||||
|
||||
-- the fuzz pass: decode, and a short render of whatever decodes
|
||||
|
||||
Reference in new issue
Block a user