MCPcopy Create free account
hub / github.com/apache/singa / CmpHelperSTRNE

Function CmpHelperSTRNE

test/gtest/gtest-all.cc:3046–3058  ·  view source on GitHub ↗

Helper function for *_STRNE on wide strings.

Source from the content-addressed store, hash-verified

3044
3045// Helper function for *_STRNE on wide strings.
3046AssertionResult CmpHelperSTRNE(const char* s1_expression,
3047 const char* s2_expression,
3048 const wchar_t* s1,
3049 const wchar_t* s2) {
3050 if (!String::WideCStringEquals(s1, s2)) {
3051 return AssertionSuccess();
3052 }
3053
3054 return AssertionFailure() << "Expected: (" << s1_expression << ") != ("
3055 << s2_expression << "), actual: "
3056 << PrintToString(s1)
3057 << " vs " << PrintToString(s2);
3058}
3059
3060// Compares two C strings, ignoring case. Returns true iff they have
3061// the same content.

Callers

nothing calls this directly

Calls 3

AssertionSuccessFunction · 0.85
AssertionFailureFunction · 0.85
PrintToStringFunction · 0.85

Tested by

no test coverage detected