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

Function assert_equals

smallthinker/tests/test-chat.cpp:80–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80template <class T> static void assert_equals(const T & expected, const T & actual) {
81 if (!equals(expected, actual)) {
82 std::cerr << "Expected: " << expected << std::endl;
83 std::cerr << "Actual: " << actual << std::endl;
84 std::cerr << std::flush;
85 throw std::runtime_error("Test failed");
86 }
87}
88
89static std::string read_file(const std::string & path) {
90 std::cerr << "# Reading: " << path << '\n' << std::flush;

Callers 6

assert_msg_equalsFunction · 0.70
test_templatesFunction · 0.70
test_msg_diffs_computeFunction · 0.70

Calls 1

equalsFunction · 0.85

Tested by

no test coverage detected