Sha256: 967043ee76f29b3cf8a15f3ec75e30e15866b3ab5da9bb255dddb80bb8fc060a

Contents?: true

Size: 595 Bytes

Versions: 16

Compression:

Stored size: 595 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 <tao/json/events/from_string.hpp>
#include <tao/json/events/to_string.hpp>

namespace tao::json
{
   void test( const std::string& v )
   {
      events::to_string consumer;
      events::from_string( consumer, v );
      TEST_ASSERT( consumer.value() == 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

Version Path
couchbase-3.0.0.alpha.4-x86_64-linux ext/third_party/json/src/test/json/events_to_string.cpp
couchbase-3.0.0.alpha.4-x86_64-darwin-19 ext/third_party/json/src/test/json/events_to_string.cpp
couchbase-3.0.0.alpha.4-universal-darwin-19 ext/third_party/json/src/test/json/events_to_string.cpp
couchbase-3.0.0.alpha.4 ext/third_party/json/src/test/json/events_to_string.cpp
couchbase-3.0.0.alpha.3-x86_64-linux ext/third_party/json/src/test/json/events_to_string.cpp
couchbase-3.0.0.alpha.3-x86_64-darwin-19 ext/third_party/json/src/test/json/events_to_string.cpp
couchbase-3.0.0.alpha.3-universal-darwin-19 ext/third_party/json/src/test/json/events_to_string.cpp
couchbase-3.0.0.alpha.3 ext/third_party/json/src/test/json/events_to_string.cpp
couchbase-3.0.0.alpha.2-x86_64-linux ext/third_party/json/src/test/json/events_to_string.cpp
couchbase-3.0.0.alpha.2-x86_64-darwin-19 ext/third_party/json/src/test/json/events_to_string.cpp
couchbase-3.0.0.alpha.2-universal-darwin-19 ext/third_party/json/src/test/json/events_to_string.cpp
couchbase-3.0.0.alpha.2 ext/third_party/json/src/test/json/events_to_string.cpp
couchbase-3.0.0.alpha.1-x86_64-linux ext/third_party/json/src/test/json/events_to_string.cpp
couchbase-3.0.0.alpha.1-x86_64-darwin-19 ext/third_party/json/src/test/json/events_to_string.cpp
couchbase-3.0.0.alpha.1-universal-darwin-19 ext/third_party/json/src/test/json/events_to_string.cpp
couchbase-3.0.0.alpha.1 ext/third_party/json/src/test/json/events_to_string.cpp