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 isDotty: Boolean

Returns whether the current Scala version is Dotty.

Returns whether the current Scala version is Dotty.

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.