mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-13 02:22:57 +01:00
4c9864de73
This commit contains the third major design of a C++ library for JSON Schema validation. It is definitely not what I would consider production-ready, but I do think that the overall design of the library is robust.
19 lines
365 B
C++
19 lines
365 B
C++
#include <gtest/gtest.h>
|
|
|
|
#include <valijson/schema.hpp>
|
|
|
|
using valijson::Schema;
|
|
|
|
class TestUriResolution : public ::testing::Test
|
|
{
|
|
|
|
};
|
|
|
|
TEST_F(TestUriResolution, TestDefaultScopeAndUri)
|
|
{
|
|
Schema schema;
|
|
EXPECT_FALSE( schema.hasId() );
|
|
EXPECT_ANY_THROW( schema.getId() );
|
|
EXPECT_EQ( "", schema.getUri() );
|
|
EXPECT_EQ( "", schema.getScope() );
|
|
} |