diff options
author | Som Snytt <som.snytt@gmail.com> | 2015-07-02 16:12:22 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2015-07-02 18:23:38 -0700 |
commit | 9fa18ccfc0fd281ac111557fa317aef515c8a46f (patch) | |
tree | 85180ee04e5b6f0e0eca2d3a8d6d3dab1add59e2 /test/junit/scala/tools/nsc/settings/ScalaVersionTest.scala | |
parent | f187bde1fde0e48960b39242db0d42573f1e363b (diff) | |
download | scala-9fa18ccfc0fd281ac111557fa317aef515c8a46f.tar.gz scala-9fa18ccfc0fd281ac111557fa317aef515c8a46f.tar.bz2 scala-9fa18ccfc0fd281ac111557fa317aef515c8a46f.zip |
SI-9377 Update ScalaVersion error text
Simplify and sweeten the message.
Diffstat (limited to 'test/junit/scala/tools/nsc/settings/ScalaVersionTest.scala')
-rw-r--r-- | test/junit/scala/tools/nsc/settings/ScalaVersionTest.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/junit/scala/tools/nsc/settings/ScalaVersionTest.scala b/test/junit/scala/tools/nsc/settings/ScalaVersionTest.scala index a10e395011..3717f80362 100644 --- a/test/junit/scala/tools/nsc/settings/ScalaVersionTest.scala +++ b/test/junit/scala/tools/nsc/settings/ScalaVersionTest.scala @@ -56,6 +56,10 @@ class ScalaVersionTest { assertThrows[NumberFormatException] { ScalaVersion("2-") } assertThrows[NumberFormatException] { ScalaVersion("2-.") } // scalacheck territory assertThrows[NumberFormatException] { ScalaVersion("any.7") } + + assertThrows[NumberFormatException] ( ScalaVersion("2.11-ok"), _ == + "Bad version (2.11-ok) not major[.minor[.revision[-suffix]]]" ) + } // SI-9377 |