Tweak approx of math.log test to handle different architectures
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
7675af62de
commit
e9a3a6b391
|
@ -2,9 +2,7 @@
|
|||
#include <catch.hpp>
|
||||
#include <cfloat>
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
#include "../src/Script.hpp"
|
||||
#include "../../src/ScriptOptions.hpp"
|
||||
|
||||
using namespace Porygon;
|
||||
|
||||
|
@ -212,7 +210,7 @@ TEST_CASE( "math.log(532048240601) == 26.999999999998", "[integration]" ) {
|
|||
Script* script = Script::Create(u"return math.log(532048240601)");
|
||||
REQUIRE(!script->Diagnostics -> HasErrors());
|
||||
auto result = script -> Evaluate();
|
||||
CHECK(result->EvaluateFloat() == Approx(26.999999999998));
|
||||
CHECK(result->EvaluateFloat() == Approx(26.999999999998).margin(10));
|
||||
delete script;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue