mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Tyler Veness <calcmogul@gmail.com>
|
|
Date: Wed, 10 Aug 2022 22:35:00 -0700
|
|
Subject: [PATCH 27/31] Remove StringMap test for llvm::sort()
|
|
|
|
---
|
|
llvm/unittests/ADT/StringMapTest.cpp | 14 --------------
|
|
1 file changed, 14 deletions(-)
|
|
|
|
diff --git a/llvm/unittests/ADT/StringMapTest.cpp b/llvm/unittests/ADT/StringMapTest.cpp
|
|
index 6b6cf564909f329c220eb225f3b7af6c35301029..0d83669a580408e925ec6308410ebe7c01b48b12 100644
|
|
--- a/llvm/unittests/ADT/StringMapTest.cpp
|
|
+++ b/llvm/unittests/ADT/StringMapTest.cpp
|
|
@@ -322,20 +322,6 @@ TEST_F(StringMapTest, InsertOrAssignTest) {
|
|
EXPECT_EQ(0, try1.first->second.copy);
|
|
}
|
|
|
|
-TEST_F(StringMapTest, IterMapKeysVector) {
|
|
- StringMap<int> Map;
|
|
- Map["A"] = 1;
|
|
- Map["B"] = 2;
|
|
- Map["C"] = 3;
|
|
- Map["D"] = 3;
|
|
-
|
|
- std::vector<std::string_view> Keys{Map.keys().begin(), Map.keys().end()};
|
|
- llvm::sort(Keys);
|
|
-
|
|
- std::vector<std::string_view> Expected{{"A", "B", "C", "D"}};
|
|
- EXPECT_EQ(Expected, Keys);
|
|
-}
|
|
-
|
|
TEST_F(StringMapTest, IterMapKeysSmallVector) {
|
|
StringMap<int> Map;
|
|
Map["A"] = 1;
|