MCPcopy Create free account
hub / github.com/boostorg/json / testHash

Method testHash

test/array.cpp:1306–1323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1304 }
1305
1306 void
1307 testHash()
1308 {
1309 BOOST_TEST(check_hash_equal(
1310 array{}, array()));
1311 BOOST_TEST(check_hash_equal(
1312 array{1,1}, array{1,1}));
1313 BOOST_TEST(check_hash_equal(
1314 array{1,1}, array{1,1}));
1315 BOOST_TEST(expect_hash_not_equal(
1316 array{1,1}, array{1,2}));
1317 BOOST_TEST(check_hash_equal(
1318 array{"a", "b", 17},
1319 array{"a", "b", 17U}));
1320 BOOST_TEST(expect_hash_not_equal(
1321 array{"a", "b", nullptr},
1322 array{nullptr, "a", "b"}));
1323 }
1324
1325 void
1326 testIssue692()

Callers

nothing calls this directly

Calls 3

check_hash_equalFunction · 0.85
expect_hash_not_equalFunction · 0.85
arrayClass · 0.50

Tested by

no test coverage detected