[gardening] Standardize ./unittests/Basic so that all tests have the Test.cpp suffix.

This commit is contained in:
Michael Gottesman
2017-02-09 21:50:57 -08:00
parent 79c4034bb1
commit af61ed85a4
9 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,13 @@
#include "swift/Basic/DemangleWrappers.h"
#include "gtest/gtest.h"
using namespace swift::demangle_wrappers;
TEST(Demangle, DemangleWrappers) {
EXPECT_EQ("", demangleSymbolAsString(""));
std::string MangledName = "_TtV1a1b\\\t\n\r\"\'\x1f\x20\x7e\x7f";
MangledName += '\0';
EXPECT_EQ("a.b with unmangled suffix \"\\\\\\t\\n\\r\\\"'\\x1F ~\\x7F\\0\"",
demangleSymbolAsString(MangledName));
}