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 @@ -104,66 +104,6 @@ class RegexConsumerTests: XCTestCase {
104
104
result: " 9+16, 3, 10, 99+1 " )
105
105
)
106
106
}
107
-
108
- func testSwitches( ) {
109
- // Failure cases
110
- do {
111
- switch " abcde " {
112
- case Regex {
113
- " a "
114
- ZeroOrMore ( . any)
115
- " f "
116
- } :
117
- XCTFail ( )
118
-
119
- case OneOrMore { CharacterClass . whitespace } :
120
- XCTFail ( )
121
-
122
- case " abc " :
123
- XCTFail ( )
124
-
125
- case Regex {
126
- " a "
127
- " b "
128
- " c "
129
- } :
130
- XCTFail ( )
131
-
132
- default :
133
- break
134
- }
135
- }
136
- // Success cases
137
- do {
138
- let input = " abcde "
139
-
140
- switch input {
141
- case Regex {
142
- " a "
143
- ZeroOrMore ( . any)
144
- " e "
145
- } :
146
- break
147
-
148
- default :
149
- XCTFail ( )
150
- }
151
-
152
- guard case Regex( {
153
- " a "
154
- ZeroOrMore ( . any)
155
- " e "
156
- } ) = input else {
157
- XCTFail ( )
158
- return
159
- }
160
-
161
- guard case OneOrMore( . word) = input else {
162
- XCTFail ( )
163
- return
164
- }
165
- }
166
- }
167
107
}
168
108
169
109
class AlgorithmsResultBuilderTests : XCTestCase {
You can’t perform that action at this time.
0 commit comments