File: run-repl_7.scala

package info (click to toggle)
scala 2.11.12-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 62,828 kB
  • sloc: javascript: 28,808; java: 13,415; xml: 3,250; sh: 1,620; python: 756; makefile: 38; awk: 36; ansic: 6
file content (20 lines) | stat: -rw-r--r-- 742 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import scala.tools.partest.JavapTest

object Test extends JavapTest {
  // note the '-fun': it makes :javap search for some anonfun.
  // for that reason, this test has a flags file that forces delambdafy:inline (doesn't allow :method)
  def code = """
    |:javap -fun disktest/Foo.class
  """.stripMargin

  override def yah(res: Seq[String]) =
    // It's currently unknown why this test fails on Avian with
    // “Failed: No anonfuns found.”, skip it for now. See SI-7630.
    if (scala.tools.partest.utils.Properties.isAvian)
      true
    else {
      val r = "public final class disktest.Foo.*extends scala.runtime.AbstractFunction1".r
      def filtered = res filter (r.findFirstIn(_).nonEmpty)
      1 == filtered.size
    }
}