1 //===- StringMapTest.cpp --------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "llvm/Testing/ADT/StringMap.h"
10 #include "llvm/ADT/StringMap.h"
12 #include "gtest/gtest.h"
18 TEST(StringMapTest
, StringMapStream
) {
19 std::ostringstream OS
;
26 EXPECT_EQ(OS
.str(), R
"({
33 TEST(StringMapTest
, NestedStringMapStream
) {
34 std::ostringstream OS
;
35 StringMap
<StringMap
<int>> Map
;
37 Map
["A"]["Apple"] = 5;
42 EXPECT_EQ(OS
.str(), R
"({