MCPcopy Index your code
hub / github.com/appdevforall/CodeOnTheGo / assert_equals

Function assert_equals

subprojects/llama.cpp/tests/test-chat.cpp:85–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85template <class T> static void assert_equals(const T & expected, const T & actual) {
86 if (!equals(expected, actual)) {
87 std::cerr << "Expected:```\n" << expected << "\n```" << std::endl;
88 std::cerr << "Actual:```\n" << actual << "\n```" << std::endl;
89 std::cerr << std::flush;
90 throw std::runtime_error("Test failed");
91 }
92}
93
94static std::string read_file(const std::string & path) {
95 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