MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / assert_equals

Function assert_equals

subprojects/llama.cpp/tests/test-chat-parser.cpp:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

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