valijson/tests/test_uri_resolution.cpp
Tristan Penman 4c9864de73 Initial commit.
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.
2013-10-30 07:51:11 +11:00

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() );
}