|
1 | | -<!--- INCLUDE .*/example-([a-z]+)-([0-9a-z]+)\.kt |
2 | | -/* |
3 | | - * Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. |
4 | | - */ |
5 | | -
|
6 | | -// This file was automatically generated from coroutines-guide.md by Knit tool. Do not edit. |
7 | | -package kotlinx.coroutines.guide.$$1$$2 |
8 | | ---> |
9 | | -<!--- KNIT ../kotlinx-coroutines-core/jvm/test/guide/.*\.kt --> |
10 | | -<!--- TEST_OUT ../kotlinx-coroutines-core/jvm/test/guide/test/BasicsGuideTest.kt |
11 | | -// This file was automatically generated from coroutines-guide.md by Knit tool. Do not edit. |
12 | | -package kotlinx.coroutines.guide.test |
13 | | -
|
14 | | -import org.junit.Test |
15 | | -
|
16 | | -class BasicsGuideTest { |
17 | | ---> |
| 1 | +<!--- TEST_NAME BasicsGuideTest --> |
18 | 2 |
|
19 | 3 | **Table of contents** |
20 | 4 |
|
@@ -141,7 +125,7 @@ fun main() = runBlocking<Unit> { // start main coroutine |
141 | 125 |
|
142 | 126 | </div> |
143 | 127 |
|
144 | | -> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-02b.kt). |
| 128 | +> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-03.kt). |
145 | 129 |
|
146 | 130 | <!--- TEST |
147 | 131 | Hello, |
@@ -196,7 +180,7 @@ fun main() = runBlocking { |
196 | 180 |
|
197 | 181 | </div> |
198 | 182 |
|
199 | | -> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-03.kt). |
| 183 | +> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-04.kt). |
200 | 184 |
|
201 | 185 | <!--- TEST |
202 | 186 | Hello, |
@@ -241,7 +225,7 @@ fun main() = runBlocking { // this: CoroutineScope |
241 | 225 |
|
242 | 226 | </div> |
243 | 227 |
|
244 | | -> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-03s.kt). |
| 228 | +> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-05.kt). |
245 | 229 |
|
246 | 230 | <!--- TEST |
247 | 231 | Hello, |
@@ -281,7 +265,7 @@ fun main() = runBlocking { // this: CoroutineScope |
281 | 265 |
|
282 | 266 | </div> |
283 | 267 |
|
284 | | -> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-04.kt). |
| 268 | +> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-06.kt). |
285 | 269 |
|
286 | 270 | <!--- TEST |
287 | 271 | Task from coroutine scope |
@@ -317,7 +301,7 @@ suspend fun doWorld() { |
317 | 301 |
|
318 | 302 | </div> |
319 | 303 |
|
320 | | -> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-05.kt). |
| 304 | +> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-07.kt). |
321 | 305 |
|
322 | 306 | <!--- TEST |
323 | 307 | Hello, |
@@ -354,7 +338,7 @@ fun main() = runBlocking { |
354 | 338 |
|
355 | 339 | </div> |
356 | 340 |
|
357 | | -> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-06.kt). |
| 341 | +> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-08.kt). |
358 | 342 |
|
359 | 343 | <!--- TEST lines.size == 1 && lines[0] == ".".repeat(100_000) --> |
360 | 344 |
|
@@ -386,7 +370,7 @@ fun main() = runBlocking { |
386 | 370 |
|
387 | 371 | </div> |
388 | 372 |
|
389 | | -> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-07.kt). |
| 373 | +> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-09.kt). |
390 | 374 |
|
391 | 375 | You can run and see that it prints three lines and terminates: |
392 | 376 |
|
|
0 commit comments