File tree Expand file tree Collapse file tree 1 file changed +0
-60
lines changed Expand file tree Collapse file tree 1 file changed +0
-60
lines changed Original file line number Diff line number Diff line change @@ -103,66 +103,6 @@ class RegexConsumerTests: XCTestCase {
103103 result: " 9+16, 3, 10, 99+1 " )
104104 )
105105 }
106-
107- func testSwitches( ) {
108- // Failure cases
109- do {
110- switch " abcde " {
111- case Regex {
112- " a "
113- ZeroOrMore ( . any)
114- " f "
115- } :
116- XCTFail ( )
117-
118- case OneOrMore { CharacterClass . whitespace } :
119- XCTFail ( )
120-
121- case " abc " :
122- XCTFail ( )
123-
124- case Regex {
125- " a "
126- " b "
127- " c "
128- } :
129- XCTFail ( )
130-
131- default :
132- break
133- }
134- }
135- // Success cases
136- do {
137- let input = " abcde "
138-
139- switch input {
140- case Regex {
141- " a "
142- ZeroOrMore ( . any)
143- " e "
144- } :
145- break
146-
147- default :
148- XCTFail ( )
149- }
150-
151- guard case Regex( {
152- " a "
153- ZeroOrMore ( . any)
154- " e "
155- } ) = input else {
156- XCTFail ( )
157- return
158- }
159-
160- guard case OneOrMore( . word) = input else {
161- XCTFail ( )
162- return
163- }
164- }
165- }
166106}
167107
168108class AlgorithmsResultBuilderTests : XCTestCase {
You can’t perform that action at this time.
0 commit comments