]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/slider_decibels.qc
Merge branch 'master' into mirio/balance
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / slider_decibels.qc
index f34528da6f53803b845c5139520d9d8e66751ad4..c3eb4b0abd1cf2226480eeba3176c4a22a91f631 100644 (file)
@@ -97,7 +97,7 @@ string XonoticDecibelsSlider_valueToText(entity me, float v)
 bool autocvar_test_XonoticDecibelsSlider = false;
 TEST(XonoticDecibelsSlider, SoundTest)
 {
-       if (!autocvar_test_XonoticDecibelsSlider) { TEST_OK(); return; }
+       if (!autocvar_test_XonoticDecibelsSlider) { SUCCEED(); return; }
        for (int i = -400; i < 0; ++i)
        {
                float db = i * 0.1;
@@ -105,9 +105,9 @@ TEST(XonoticDecibelsSlider, SoundTest)
                float dbv = toDecibelOfSquare(v, -40);
                float d = dbv - db;
                LOG_INFOF("%f -> %f -> %f (diff: %f)\n", db, v, dbv, d);
-               TEST_Check(fabs(d) > 0.02);
+               EXPECT_GT(fabs(d), 0.02);
        }
-       TEST_OK();
+       SUCCEED();
 }
 
 #endif