MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / test_equality

Function test_equality

tests/bytes.cc:49–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49static void test_equality()
50{
51 Bytes b1 = {1, 2, 1, 2};
52 Bytes b2 = b1.slice(0, 2);
53 Bytes b3 = b1.slice(2, 2);
54 assert(b2 == b3);
55
56 b2 = b1.slice(1, 2);
57 assert(b2 != b3);
58}
59
60static void test_reads()
61{

Callers 1

mainFunction · 0.85

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected