aboutsummaryrefslogblamecommitdiff
path: root/src/test/scala/scala/async/neg/SampleNegSpec.scala
blob: c26caa9a61910bee4b94226073dfe0fd5fa8face (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                         
                          









                                                      
package scala.async
package neg

import java.io.File
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
import org.junit.Test
import tools.reflect.ToolBoxError

@RunWith(classOf[JUnit4])
class SampleNegSpec extends MinimalScalaTest {
  val f = new File("/Users/jason/code/scala-async/test/files/run/await0")

  @Test
  def `missing symbol`() {
    intercept[ToolBoxError] {
      eval {
        """
          | kaboom
        """.stripMargin
      }
    }.getMessage mustContain "not found: value kaboom"

  }
}