Tweak approx of math.log test to handle different architectures
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Deukhoofd 2019-08-17 18:54:38 +02:00
parent 7675af62de
commit e9a3a6b391
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}