1#include <xrpl/basics/contract.h>
3#include <gtest/gtest.h>
10TEST(contract, contract)
14 Throw<std::runtime_error>(
"Throw test");
18 EXPECT_STREQ(e1.
what(),
"Throw test");
26 EXPECT_STREQ(e2.
what(),
"Throw test");
30 FAIL() <<
"std::runtime_error should have been re-caught";
35 FAIL() <<
"std::runtime_error should have been caught the first time";
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
XRPL_NO_SANITIZE_ADDRESS void Rethrow()
Rethrow the exception currently being handled.