MCPcopy Create free account
hub / github.com/attermann/microReticulum / testCompare

Function testCompare

test/test_bytes/test_bytes.cpp:463–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463void testCompare() {
464 HEAD("testCompare:", RNS::LOG_TRACE);
465 RNS::Bytes bytes("Hello\x20World");
466 //RNS::Bytes bytes("Hello World");
467 TRACEF("testCompare: %s", bytes.toString().c_str());
468 TEST_ASSERT_TRUE(bytes == RNS::Bytes("Hello World"));
469 TEST_ASSERT_TRUE(bytes == RNS::Bytes("Hello\x20World"));
470 TEST_ASSERT_TRUE(bytes == "Hello World");
471 TEST_ASSERT_TRUE(bytes == "Hello\x20World");
472}
473
474void testConcat() {
475 HEAD("testConcat:", RNS::LOG_TRACE);

Callers

nothing calls this directly

Calls 2

BytesClass · 0.85
toStringMethod · 0.45

Tested by

no test coverage detected