From ffe838a4040281725e763d07db6b737f83f37a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 31 Aug 2018 21:23:42 +0200 Subject: [PATCH] Animation: add an explanatory comment. --- src/Magnum/Animation/Test/PlayerTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Magnum/Animation/Test/PlayerTest.cpp b/src/Magnum/Animation/Test/PlayerTest.cpp index 61a9df872..a1520ea14 100644 --- a/src/Magnum/Animation/Test/PlayerTest.cpp +++ b/src/Magnum/Animation/Test/PlayerTest.cpp @@ -833,6 +833,10 @@ void PlayerTest::runFor100YearsFloat() { CORRADE_COMPARE(player.state(), State::Playing); { + /* Asm.js uses doubles for all floating-point calculations, so we don't + lose any precision and thus even the "run for 100 years" test passes + there. Unfortunately it's not possible to detect if this is asm.js + so the XFAIL is done like this. */ #ifndef CORRADE_TARGET_EMSCRIPTEN CORRADE_EXPECT_FAIL_IF(data.failsFuzzyFloat, "Imprecision larger than 2.5e-4f."); #else