mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Update DemangleTest unit test.
Swift SVN r32901
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
TEST(FunctionNameDemangleTests, CorrectlyDemangles) {
|
||||
char OutputBuffer[128];
|
||||
|
||||
const char *FunctionName = "_TFC3foo3bar3basfS0_FT3zimCS_3zim_T_";
|
||||
const char *DemangledName = "foo.bar.bas (foo.bar)(zim : foo.zim) -> ()";
|
||||
const char *FunctionName = "_TFC3foo3bar3basfT3zimCS_3zim_T_";
|
||||
const char *DemangledName = "foo.bar.bas (zim : foo.zim) -> ()";
|
||||
|
||||
size_t Result = swift_demangle_getDemangledName(FunctionName, OutputBuffer,
|
||||
sizeof(OutputBuffer));
|
||||
@@ -39,8 +39,8 @@ TEST(FunctionNameDemangleTests, CorrectlyDemangles) {
|
||||
}
|
||||
|
||||
TEST(FunctionNameDemangledTests, WorksWithNULLBuffer) {
|
||||
const char *FunctionName = "_TFC3foo3bar3basfS0_FT3zimCS_3zim_T_";
|
||||
const char *DemangledName = "foo.bar.bas (foo.bar)(zim : foo.zim) -> ()";
|
||||
const char *FunctionName = "_TFC3foo3bar3basfT3zimCS_3zim_T_";
|
||||
const char *DemangledName = "foo.bar.bas (zim : foo.zim) -> ()";
|
||||
|
||||
// When given a null buffer, swift_demangle_getDemangledName should still be
|
||||
// able to return the size of the demangled string.
|
||||
|
||||
Reference in New Issue
Block a user