🏗️ adding anonymous namespace

This commit is contained in:
Niels Lohmann
2019-04-04 08:56:36 +02:00
parent 0da99027b7
commit f05614b240
16 changed files with 51 additions and 8 deletions

View File

@@ -42,6 +42,8 @@ using nlohmann::json;
#include <iostream>
#include <iomanip>
namespace
{
extern size_t calls;
size_t calls = 0;
@@ -165,6 +167,7 @@ void check_utf8string(bool success_expected, int byte1, int byte2 = -1, int byte
CHECK_THROWS_AS(json::parse(json_string), json::parse_error&);
}
}
}
TEST_CASE("Unicode" * doctest::skip())
{
@@ -1205,6 +1208,8 @@ TEST_CASE("Unicode" * doctest::skip())
}
}
namespace
{
void roundtrip(bool success_expected, const std::string& s);
void roundtrip(bool success_expected, const std::string& s)
@@ -1244,6 +1249,7 @@ void roundtrip(bool success_expected, const std::string& s)
CHECK_THROWS_AS(json::parse(ps), json::parse_error&);
}
}
}
TEST_CASE("Markus Kuhn's UTF-8 decoder capability and stress test")
{