=act Ignore some line number tests on Scala 2.12 #21773

This commit is contained in:
Björn Antonsson 2016-10-31 22:33:05 +01:00
parent 2080c08e36
commit 53b9a2650c
2 changed files with 12 additions and 2 deletions

View file

@ -0,0 +1,10 @@
/**
* Copyright (C) 2016 Lightbend Inc. <http://www.lightbend.com>
*/
package akka.util
import org.scalatest.{ Ignore, Tag }
import scala.util.Properties
object IgnoreForScala212 extends Tag(if (Properties.versionNumberString.startsWith("2.12")) classOf[Ignore].getName else "")

View file

@ -13,11 +13,11 @@ class LineNumberSpec extends AkkaSpec {
"writing Scala" must {
import LineNumberSpecCodeForScala._
"work for small functions" in {
"work for small functions" taggedAs IgnoreForScala212 in {
LineNumbers(oneline) should ===(SourceFileLines("LineNumberSpecCodeForScala.scala", 12, 12))
}
"work for larger functions" in {
"work for larger functions" taggedAs IgnoreForScala212 in {
LineNumbers(twoline) should ===(SourceFileLines("LineNumberSpecCodeForScala.scala", 14, 16))
}