MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / assert_equals

Function assert_equals

smallthinker/tests/test-json-partial.cpp:7–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <stdexcept>
6
7template <class T> static void assert_equals(const T & expected, const T & actual) {
8 if (expected != actual) {
9 std::cerr << "Expected: " << expected << std::endl;
10 std::cerr << "Actual: " << actual << std::endl;
11 std::cerr << std::flush;
12 throw std::runtime_error("Test failed");
13 }
14}
15
16static void test_json_healing() {
17 auto parse = [](const std::string & str) {

Callers 1

test_json_healingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected