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

Function test_loop

tests/bytes.cc:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36static void test_loop()
37{
38 Bytes b = {1, 2, 3, 4};
39
40 std::vector<uint8_t> v(b.begin(), b.end());
41 assert((v == std::vector<uint8_t>{1, 2, 3, 4}));
42
43 unsigned sum = 0;
44 for (uint8_t i : b)
45 sum += i;
46 assert(sum == 10);
47}
48
49static void test_equality()
50{

Callers 1

mainFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected