File tree 3 files changed +8
-4
lines changed
core/kotlinx-coroutines-core/test/guide/test
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ class GuideTest {
294
294
295
295
@Test
296
296
fun testKotlinxCoroutinesExperimentalGuideContext09 () {
297
- test(" KotlinxCoroutinesExperimentalGuideContext09" ) { kotlinx.coroutines.experimental.guide.context09.main(emptyArray()) }.verifyLines (
297
+ test(" KotlinxCoroutinesExperimentalGuideContext09" ) { kotlinx.coroutines.experimental.guide.context09.main(emptyArray()) }.verifyLinesFlexibleThread (
298
298
" I'm working in thread CommonPool-worker-1 @test#2"
299
299
)
300
300
}
Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ fun main(args: Array<String>) = runBlocking<Unit> {
360
360
361
361
// this is your first suspending function
362
362
suspend fun launchDoWorld () = currentScope {
363
- launch {
363
+ launch {
364
364
println (" World!" )
365
365
}
366
366
}
@@ -1394,7 +1394,7 @@ The output of this code with `-Dkotlinx.coroutines.debug` JVM option is:
1394
1394
I'm working in thread CommonPool-worker-1 @test#2
1395
1395
```
1396
1396
1397
- <!-- - TEST -->
1397
+ <!-- - TEST FLEXIBLE_THREAD -->
1398
1398
1399
1399
### Cancellation via explicit job
1400
1400
Original file line number Diff line number Diff line change @@ -324,7 +324,11 @@ private fun requireSingleLine(directive: Directive) {
324
324
require(directive.singleLine) { " ${directive.name} directive must end on the same line with '$DIRECTIVE_END '" }
325
325
}
326
326
327
- fun makeSectionRef (name : String ): String = name.replace(' ' , ' -' ).replace(" ." , " " ).toLowerCase()
327
+ fun makeSectionRef (name : String ): String = name
328
+ .replace(' ' , ' -' )
329
+ .replace(" ." , " " )
330
+ .replace(" ," , " " )
331
+ .toLowerCase()
328
332
329
333
class Include (val regex : Regex , val lines : MutableList <String > = arrayListOf())
330
334
You can’t perform that action at this time.
0 commit comments