From 5249d950bb858d920360cb42f7da064810e18668 Mon Sep 17 00:00:00 2001 From: 4DBug Date: Sat, 31 Oct 2026 09:32:26 -0500 Subject: [PATCH] ws-music: loop test compares durations at their own rates --- tests/music/mod.luau | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/music/mod.luau b/tests/music/mod.luau index 5dc59fa..79e8941 100644 --- a/tests/music/mod.luau +++ b/tests/music/mod.luau @@ -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