Skip to content

Commit

Permalink
std::hash jsoncons::string_view
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Nov 9, 2023
1 parent efe58be commit ae6ec02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/corelib/src/detail/string_view_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ TEST_CASE("string_view tests")
std::string key1{"Foo"};
std::string key2{"Bar"};

map.try_emplace(key1, 1);
map.try_emplace(key2, 2);
map.emplace(key1, 1);
map.emplace(key2, 2);

CHECK(map.find(key1) != map.end());
CHECK(map[key1] == 1);
Expand Down

0 comments on commit ae6ec02

Please sign in to comment.