@@ -841,11 +841,6 @@ NSStringAPIs.test("init(format:locale:arguments:)") {
841841 locale: nil , arguments: args) )
842842}
843843
844- NSStringAPIs . test ( " lastPathComponent " ) {
845- expectEqual ( " bar " , " /foo/bar " . lastPathComponent)
846- expectEqual ( " абв " , " /foo/абв " . lastPathComponent)
847- }
848-
849844NSStringAPIs . test ( " utf16Count " ) {
850845 expectEqual ( 1 , " a " . utf16. count)
851846 expectEqual ( 2 , " \u{0001F60A} " . utf16. count)
@@ -1035,11 +1030,6 @@ NSStringAPIs.test("pathComponents") {
10351030 expectEqual ( [ " / " , " абв " , " где " ] as [ NSString ] , ( " /абв/где " as NSString ) . pathComponents as [ NSString ] )
10361031}
10371032
1038- NSStringAPIs . test ( " pathExtension " ) {
1039- expectEqual ( " " , " /foo/bar " . pathExtension)
1040- expectEqual ( " txt " , " /foo/bar.txt " . pathExtension)
1041- }
1042-
10431033NSStringAPIs . test ( " precomposedStringWithCanonicalMapping " ) {
10441034 expectEqual ( " abc " , " abc " . precomposedStringWithCanonicalMapping)
10451035 expectEqual ( " だくてん " ,
@@ -1359,26 +1349,13 @@ NSStringAPIs.test("appendingFormat(_:_:...)") {
13591349 . appendingFormat ( " def %@ %ld " , formatArg, 42 ) )
13601350}
13611351
1362- NSStringAPIs . test ( " appendingPathComponent(_:) " ) {
1363- expectEqual ( " " , " " . appendingPathComponent ( " " ) )
1364- expectEqual ( " a.txt " , " " . appendingPathComponent ( " a.txt " ) )
1365- expectEqual ( " /tmp/a.txt " , " /tmp " . appendingPathComponent ( " a.txt " ) )
1366- }
1367-
13681352NSStringAPIs . test ( " appending(_:) " ) {
13691353 expectEqual ( " " , " " . appending ( " " ) )
13701354 expectEqual ( " a " , " a " . appending ( " " ) )
13711355 expectEqual ( " a " , " " . appending ( " a " ) )
13721356 expectEqual ( " さ \u{3099} " , " さ " . appending ( " \u{3099} " ) )
13731357}
13741358
1375- NSStringAPIs . test ( " deletingLastPathComponent " ) {
1376- expectEqual ( " " , " " . deletingLastPathComponent)
1377- expectEqual ( " / " , " / " . deletingLastPathComponent)
1378- expectEqual ( " / " , " /tmp " . deletingLastPathComponent)
1379- expectEqual ( " /tmp " , " /tmp/a.txt " . deletingLastPathComponent)
1380- }
1381-
13821359NSStringAPIs . test ( " folding(options:locale:) " ) {
13831360
13841361 func fwo(
@@ -1597,22 +1574,6 @@ NSStringAPIs.test("replacingPercentEscapes(using:)/rdar18029471")
15971574 using: . ascii) )
15981575}
15991576
1600- NSStringAPIs . test ( " resolvingSymlinksInPath " ) {
1601- // <rdar://problem/18030188> Difference between
1602- // resolvingSymlinksInPath and stringByStandardizingPath is unclear
1603- expectEqual ( " " , " " . resolvingSymlinksInPath)
1604- expectEqual (
1605- " /var " , " /private/var/tmp////..// " . resolvingSymlinksInPath)
1606- }
1607-
1608- NSStringAPIs . test ( " standardizingPath " ) {
1609- // <rdar://problem/18030188> Difference between
1610- // resolvingSymlinksInPath and standardizingPath is unclear
1611- expectEqual ( " " , " " . standardizingPath)
1612- expectEqual (
1613- " /var " , " /private/var/tmp////..// " . standardizingPath)
1614- }
1615-
16161577NSStringAPIs . test ( " trimmingCharacters(in:) " ) {
16171578 expectEqual ( " " , " " . trimmingCharacters (
16181579 in: CharacterSet . decimalDigits) )
0 commit comments