json-schema-validator/test/issue-9/test_issue.cpp
Cristian Le cadf5cc226 Migrate tests to Catch2
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-11-28 15:08:28 +01:00

17 lines
420 B
C++

#include <filesystem>
#include <string_view>
#include <catch2/catch_test_macros.hpp>
#include "utils.h"
using namespace std::literals;
TEST_CASE_METHOD(JsonValidateFixture, "issue-9")
{
// Change the working directory to the issue path
auto path = std::filesystem::path(__FILE__).parent_path();
REQUIRE_NOTHROW(std::filesystem::current_path(path));
REQUIRE_NOTHROW(validate("base.json"sv, "instance.json"sv));
}