Merge pull request #190 from twelsby/issue185

fixed #185 - remove approx() and use #pragma to kill warnings
This commit is contained in:
Niels 2016-01-24 12:55:40 +01:00
commit e00b00fea8
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")