Skip to content

Commit 7cc222e

Browse files
Lance Parkermilseman
Lance Parker
authored andcommitted
Ditched the simple/complex test distinction as they all pass now (#20)
1 parent 588e296 commit 7cc222e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Diff for: validation-test/stdlib/String.swift

+1-7
Original file line numberDiff line numberDiff line change
@@ -1985,16 +1985,14 @@ struct ComparisonTestCase {
19851985
}
19861986
}
19871987

1988-
let simpleComparisonTestCases = [
1988+
let comparisonTestCases = [
19891989
ComparisonTestCase(["a", "a"], .equal),
19901990
ComparisonTestCase(["abcdefg", "abcdefg"], .equal),
19911991
ComparisonTestCase(["", "Z", "a", "b", "c", "\u{00c5}", "á"], .less),
19921992

19931993
ComparisonTestCase(["ábcdefg", "ábcdefgh", "ábcdefghi"], .less),
19941994
ComparisonTestCase(["abcdefg", "abcdefgh", "abcdefghi"], .less),
1995-
]
19961995

1997-
let complexComparisonTestCases = [
19981996
ComparisonTestCase(["á", "\u{0061}\u{0301}"], .equal),
19991997
ComparisonTestCase(["à", "\u{0061}\u{0301}", "â", "\u{e3}", "a\u{0308}"], .less),
20001998

@@ -2066,8 +2064,6 @@ let complexComparisonTestCases = [
20662064
ComparisonTestCase(["ì̡̢̧̨̝̞̟̠̣̤̥̦̩̪̫̬̭̮̯̰̹̺̻̼͇͈͉͍͎́̂̃̄̉̊̋̌̍̎̏̐̑̒̓̽̾̿̀́͂̓̈́͆͊͋͌ͅ͏͓͔͕͖͙͐͑͒͗ͬͭͮ͘", "ì̡̢̧̨̝̞̟̠̣̤̥̦̩̪̫̬̭̮̯̰̹̺̻̼͇͈͉͍͎́̂̃̄̉̊̋̌̍̎̏̐̑̒̓̽̾̿̀́͂̓̈́͆͊͋͌ͅ͏͓͔͕͖͙͐͑͒͗ͬͭͮ͘"], .equal)
20672065
]
20682066

2069-
let comparisonTestCases = simpleComparisonTestCases + complexComparisonTestCases
2070-
20712067
for test in comparisonTestCases {
20722068
StringTests.test("Comparison.\(test.strings)") {
20732069
test.test()
@@ -2078,9 +2074,7 @@ for test in comparisonTestCases {
20782074
.code {
20792075
test.testOpaqueStrings()
20802076
}
2081-
}
20822077

2083-
for test in simpleComparisonTestCases {
20842078
StringTests.test("Comparison.OpaqueSubstring.\(test.strings)")
20852079
.skip(.linuxAny(reason: "NSSlowString requires ObjC interop"))
20862080
.code {

0 commit comments

Comments
 (0)