TestVersion

TestVersion provides information about the Scala version tests are being run on to enable platform specific test configuration.

class Object
trait Matchable
class Any

Value members

Concrete fields

val isScala2: Boolean

Returns whether the current Scala version is Scala 2.

Returns whether the current Scala version is Scala 2.

val isScala211: Boolean

Returns whether the current Scala version is Scala 2.11.

Returns whether the current Scala version is Scala 2.11.

val isScala212: Boolean

Returns whether the current Scala version is Scala 2.12.

Returns whether the current Scala version is Scala 2.12.

val isScala213: Boolean

Returns whether the current Scala version is Scala 2.13.

Returns whether the current Scala version is Scala 2.13.

val isScala3: Boolean

Returns whether the current Scala version is Scala 3.

Returns whether the current Scala version is Scala 3.