Issue #185 - remove approx() and use #pragma to kill warnings

This commit is contained in:
Trevor Welsby 2016-01-23 17:45:30 +10:00
parent 9de14a4861
commit 3a1403409f
3 changed files with 35 additions and 24 deletions

View file

@ -25,6 +25,11 @@
#include "json.hpp"
using nlohmann::json;
// disable float-equal warnings on GCC/clang
#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
#pragma GCC diagnostic ignored "-Wfloat-equal"
#endif
TEST_CASE("constructors")
{
SECTION("create an empty value with a given type")