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

Function assert_equals

smallthinker/tests/test-chat-parser.cpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17template <class T>
18static void assert_equals(const T & expected, const T & actual) {
19 if (expected != actual) {
20 std::cerr << "Expected: " << expected << std::endl;
21 std::cerr << "Actual: " << actual << std::endl;
22 std::cerr << std::flush;
23 throw std::runtime_error("Test failed");
24 }
25}
26static void assert_equals(const char * expected, const std::string & actual) {
27 return assert_equals<std::string>(expected, actual);
28}

Callers 5

test_reasoningFunction · 0.70
test_regexFunction · 0.70
testFunction · 0.70
test_with_argsFunction · 0.70
test_positionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected