From 20eba271329b17fad09ef4270026911fdcfe6c68 Mon Sep 17 00:00:00 2001 From: Kilian von Pflugk Date: Sun, 19 May 2024 17:47:02 +0200 Subject: [PATCH] adjust unit test values after switching from 0.128 to 0.1238 --- .../TestAudioFingerprinting.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs b/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs index dc14dad..b07629a 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs @@ -104,11 +104,12 @@ public class TestAudioFingerprinting Assert.True(lhs.Valid); Assert.Equal(0, lhs.IntroStart); - Assert.Equal(17.792, lhs.IntroEnd); + Assert.Equal(17.208, lhs.IntroEnd, 3); Assert.True(rhs.Valid); - Assert.Equal(5.12, rhs.IntroStart); - Assert.Equal(22.912, rhs.IntroEnd); + // because we changed for 0.128 to 0.1238 its 4,952 now but that's too early (<= 5) + Assert.Equal(0, rhs.IntroStart); + Assert.Equal(22.1602, rhs.IntroEnd); } ///