rippled
Loading...
Searching...
No Matches
TestOutputSuite.h
1#pragma once
2
3#include <test/jtx/TestSuite.h>
4
5#include <xrpl/json/Output.h>
6#include <xrpl/json/Writer.h>
7
8namespace xrpl {
9namespace test {
10
12{
13protected:
16
17 void
24
25 // Test the result and report values.
26 void
27 expectResult(std::string const& expected, std::string const& message = "")
28 {
29 writer_.reset();
30
31 expectEquals(output_, expected, message);
32 }
33};
34
35} // namespace test
36} // namespace xrpl
testcase_t testcase
Memberspace for declaring test cases.
Definition suite.h:147
bool expectEquals(S actual, T expected, std::string const &message="")
Definition TestSuite.h:14
std::unique_ptr< Json::Writer > writer_
void setup(std::string const &testName)
void expectResult(std::string const &expected, std::string const &message="")
T clear(T... args)
T is_same_v
Output stringOutput(std::string &s)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
T reset(T... args)