Sha256: 71e41ca61a9ffe7f1f9a48dc856e76d19d578267374b26990fad70e6b668c646

Contents?: true

Size: 897 Bytes

Versions: 16

Compression:

Stored size: 897 Bytes

Contents

// Copyright (c) 2019-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/

#include "test.hpp"
#include "test_unhex.hpp"

#include <tao/json.hpp>

namespace tao::json
{
   void unit_test()
   {
      {
         cbor::parts_parser p( "", __FUNCTION__ );
         TEST_ASSERT( p.empty() );
      }
      {
         cbor::parts_parser p( test_unhex( "f6" ), __FUNCTION__ );
         TEST_ASSERT( p.null() == true );
         TEST_ASSERT( p.empty() );
      }
      {
         cbor::parts_parser p( test_unhex( "f4" ), __FUNCTION__ );
         TEST_ASSERT( p.boolean() == false );
         TEST_ASSERT( p.empty() );
      }
      {
         cbor::parts_parser p( test_unhex( "f5" ), __FUNCTION__ );
         TEST_ASSERT( p.boolean() == true );
         TEST_ASSERT( p.empty() );
      }
   }

}  // 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/cbor_parts_parser.cpp
couchbase-3.0.0.alpha.4-x86_64-darwin-19 ext/third_party/json/src/test/json/cbor_parts_parser.cpp
couchbase-3.0.0.alpha.4-universal-darwin-19 ext/third_party/json/src/test/json/cbor_parts_parser.cpp
couchbase-3.0.0.alpha.4 ext/third_party/json/src/test/json/cbor_parts_parser.cpp
couchbase-3.0.0.alpha.3-x86_64-linux ext/third_party/json/src/test/json/cbor_parts_parser.cpp
couchbase-3.0.0.alpha.3-x86_64-darwin-19 ext/third_party/json/src/test/json/cbor_parts_parser.cpp
couchbase-3.0.0.alpha.3-universal-darwin-19 ext/third_party/json/src/test/json/cbor_parts_parser.cpp
couchbase-3.0.0.alpha.3 ext/third_party/json/src/test/json/cbor_parts_parser.cpp
couchbase-3.0.0.alpha.2-x86_64-linux ext/third_party/json/src/test/json/cbor_parts_parser.cpp
couchbase-3.0.0.alpha.2-x86_64-darwin-19 ext/third_party/json/src/test/json/cbor_parts_parser.cpp
couchbase-3.0.0.alpha.2-universal-darwin-19 ext/third_party/json/src/test/json/cbor_parts_parser.cpp
couchbase-3.0.0.alpha.2 ext/third_party/json/src/test/json/cbor_parts_parser.cpp
couchbase-3.0.0.alpha.1-x86_64-linux ext/third_party/json/src/test/json/cbor_parts_parser.cpp
couchbase-3.0.0.alpha.1-x86_64-darwin-19 ext/third_party/json/src/test/json/cbor_parts_parser.cpp
couchbase-3.0.0.alpha.1-universal-darwin-19 ext/third_party/json/src/test/json/cbor_parts_parser.cpp
couchbase-3.0.0.alpha.1 ext/third_party/json/src/test/json/cbor_parts_parser.cpp