Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
stdplus
/
refs/heads/master
/
.
/
test
/
str
/
maps.cpp
blob: e3ff1d62a33a92648f35da05f2bdc8954d31fc16 [
file
] [
log
] [
blame
]
William A. Kennington III
521475e
2022-12-12 16:51:44 -0800
[
diff
] [
blame
]
1
#include
<stdplus/str/maps.hpp>
2
3
#include
<gtest/gtest.h>
4
5
namespace
stdplus
6
{
7
8
TEST
(
StringMaps
,
Basic
)
9
{
10
string_umap
<int>
a
=
{{
"hi"
,
2
}};
11
EXPECT_EQ
(
2
,
a
.
find
(
std
::
string_view
(
"hi"
))->
second
);
12
}
13
14
}
// namespace stdplus