=act Ignore some line number tests on Scala 2.12 #21773
This commit is contained in:
parent
2080c08e36
commit
53b9a2650c
2 changed files with 12 additions and 2 deletions
|
|
@ -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 "")
|
||||
|
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue