1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #include "base/dictionary.hpp"
4 #include "base/objectlock.hpp"
5 #include "base/json.hpp"
6 #include <BoostTestTargetConfig.h>
8 using namespace icinga;
10 BOOST_AUTO_TEST_SUITE(base_json)
12 BOOST_AUTO_TEST_CASE(invalid1)
14 BOOST_CHECK_THROW(JsonDecode("\"1.7"), std::exception);
15 BOOST_CHECK_THROW(JsonDecode("{8: \"test\"}"), std::exception);
16 BOOST_CHECK_THROW(JsonDecode("{\"test\": \"test\""), std::exception);
19 BOOST_AUTO_TEST_SUITE_END()