From 3eb2d3c4b37360b1884b217e840a8e419552172b Mon Sep 17 00:00:00 2001 From: LeonineKing1199 Date: Mon, 29 Nov 2021 14:55:18 -0800 Subject: [PATCH] Add comments about nature of test --- test/unordered/transparent_tests.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/unordered/transparent_tests.cpp b/test/unordered/transparent_tests.cpp index 959ca49f..f4173d84 100644 --- a/test/unordered/transparent_tests.cpp +++ b/test/unordered/transparent_tests.cpp @@ -165,6 +165,9 @@ template void test_transparent_find() int const expected_key_count = 2 * n; BOOST_TEST(key::count_ == expected_key_count); + // explicitly test `find()` and `find() const` separately + // + { UnorderedMap& m = map; @@ -225,6 +228,9 @@ template void test_non_transparent_find() BOOST_TEST(key::count_ == key_count); + // explicitly test `find()` and `find() const` separately + // + { UnorderedMap& m = map;