human_sort_test: add namespace
Add an anonymous namespace and use using declarations.
Tested: unit test passed.
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: I2d29aa7ec7923addc41b0af564542932a5abd9b4
diff --git a/include/ut/human_sort_test.cpp b/include/ut/human_sort_test.cpp
index b9c245a..938b582 100644
--- a/include/ut/human_sort_test.cpp
+++ b/include/ut/human_sort_test.cpp
@@ -6,6 +6,11 @@
#include <gmock/gmock.h>
#include <gtest/gtest.h>
+namespace
+{
+
+using ::testing::ElementsAreArray;
+
TEST(AlphaNum, NumberTests)
{
// testcases for the algorithm
@@ -43,6 +48,6 @@
{
std::set<std::string, AlphanumLess<std::string>> sorted{"Alpha 10",
"Alpha 2"};
-
- EXPECT_THAT(sorted, ::testing::ElementsAreArray({"Alpha 2", "Alpha 10"}));
+ EXPECT_THAT(sorted, ElementsAreArray({"Alpha 2", "Alpha 10"}));
}
+} // namespace
\ No newline at end of file