Update unit-custom-integer.cpp

This commit is contained in:
Eric Wieser 2022-07-13 07:46:38 +01:00 committed by GitHub
parent a11691680d
commit 2f8a6621c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,6 +97,6 @@ TEST_CASE("custom integer types")
my_json as_json = my_json::parse(data.begin(), data.end());
wrapped_int<std::uint64_t> i1 = as_json[1];
wrapped_int<std::int64_t> i2 = as_json[2];
CHECK(i1 == wrapped_int<std::uint64_t>(2));
CHECK(i1 == wrapped_int<std::uint64_t>(2u));
CHECK(i2 == wrapped_int<std::int64_t>(-3));
}