• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3  */
4 
5 package kotlinx.coroutines
6 
7 import kotlin.test.*
8 
9 class DispatchersToStringTest {
10     @Test
testStringsnull11     fun testStrings() {
12         assertEquals("Dispatchers.Unconfined", Dispatchers.Unconfined.toString())
13         assertEquals("Dispatchers.Default", Dispatchers.Default.toString())
14         assertEquals("Dispatchers.IO", Dispatchers.IO.toString())
15         assertEquals("Dispatchers.Main[missing]", Dispatchers.Main.toString())
16         assertEquals("Dispatchers.Main[missing]", Dispatchers.Main.immediate.toString())
17     }
18 }