Sha256: eda185b44c19504dcc11a2c1d5b0d6354c5a2f5371c869863b78d90ca3d364cb
Contents?: true
Size: 645 Bytes
Versions: 16
Compression:
Stored size: 645 Bytes
Contents
// Copyright (c) 2016-2020 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/json/ #include "test.hpp" #include <sstream> #include <tao/json/events/from_string.hpp> #include <tao/json/events/to_stream.hpp> namespace tao::json { void test( const std::string& v ) { std::ostringstream oss; events::to_stream consumer( oss ); events::from_string( consumer, v ); TEST_ASSERT( oss.str() == v ); } void unit_test() { test( "[null,true,false,42,43.0,\"foo\",[1,2,3],{\"a\":\"b\",\"c\":\"d\"}]" ); } } // namespace tao::json #include "main.hpp"
Version data entries
16 entries across 16 versions & 1 rubygems