@@ -19,7 +19,7 @@ class MachineChainTests: _TestCase
1919
2020 // add 0 => 1 => 2
2121 machine. addRouteChain ( . State0 => . State1 => . State2) { context in
22- invokeCount++
22+ invokeCount += 1
2323 return
2424 }
2525
@@ -53,7 +53,7 @@ class MachineChainTests: _TestCase
5353
5454 // add 0 => 1 => 2
5555 machine. addRouteChain ( . State0 => . State1 => . State2, condition: { _ in flag } ) { context in
56- invokeCount++
56+ invokeCount += 1
5757 return
5858 }
5959
@@ -121,7 +121,7 @@ class MachineChainTests: _TestCase
121121
122122 // add 0 => 1 => 2
123123 machine. addRouteChain ( . State0 => . State1 => . State2) { context in
124- invokeCount++
124+ invokeCount += 1
125125 return
126126 }
127127 // machine.addRoute(.State1 => .State3) // comment-out: 1 => 3 is not possible
@@ -144,7 +144,7 @@ class MachineChainTests: _TestCase
144144
145145 // add 0 => 1 => 2 => 0 (back home) => 2
146146 machine. addRouteChain ( . State0 => . State1 => . State2 => . State0 => . State2) { context in
147- invokeCount++
147+ invokeCount += 1
148148 return
149149 }
150150
@@ -170,7 +170,7 @@ class MachineChainTests: _TestCase
170170
171171 // add 0 => 1 => 2 => 0 (back home) => 1 => 2
172172 machine. addRouteChain ( . State0 => . State1 => . State2 => . State0 => . State1 => . State2) { context in
173- invokeCount++
173+ invokeCount += 1
174174 return
175175 }
176176
@@ -207,7 +207,7 @@ class MachineChainTests: _TestCase
207207
208208 // add 0 => 1 => 2
209209 let chainDisposable = machine. addRouteChain ( . State0 => . State1 => . State2) { context in
210- invokeCount++
210+ invokeCount += 1
211211 return
212212 }
213213
@@ -243,7 +243,7 @@ class MachineChainTests: _TestCase
243243
244244 // add 0 => 1 => 2 chainErrorHandler
245245 machine. addChainErrorHandler ( transitionChain) { context in
246- errorCount++
246+ errorCount += 1
247247 return
248248 }
249249
@@ -272,7 +272,7 @@ class MachineChainTests: _TestCase
272272
273273 // add 0 => 1 => 2 chainErrorHandler
274274 let chainErrorHandlerDisposable = machine. addChainErrorHandler ( transitionChain) { context in
275- errorCount++
275+ errorCount += 1
276276 return
277277 }
278278
0 commit comments