summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@typesafe.com>2014-11-04 14:39:39 +0100
committerLukas Rytz <lukas.rytz@typesafe.com>2014-11-04 14:39:39 +0100
commitf3bf6136bfff650c3078aa7cd383604d5140ca61 (patch)
tree9bae6114740ab503be839429c75286b6fd6e63d5 /test
parentb556b2fdcc7198bffe0ee90c5adc8c9eb3c29e36 (diff)
parent2f54eb350038c48d0f0aadc6c8793ea0ef9ff80c (diff)
downloadscala-f3bf6136bfff650c3078aa7cd383604d5140ca61.tar.gz
scala-f3bf6136bfff650c3078aa7cd383604d5140ca61.tar.bz2
scala-f3bf6136bfff650c3078aa7cd383604d5140ca61.zip
Merge pull request #4046 from gourlaysama/wip/t8711-version-unparse
SI-8711 ScalaVersion.unparse doesn't produce valid versions
Diffstat (limited to 'test')
-rw-r--r--test/junit/scala/tools/nsc/settings/ScalaVersionTest.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/junit/scala/tools/nsc/settings/ScalaVersionTest.scala b/test/junit/scala/tools/nsc/settings/ScalaVersionTest.scala
new file mode 100644
index 0000000000..77a2da828e
--- /dev/null
+++ b/test/junit/scala/tools/nsc/settings/ScalaVersionTest.scala
@@ -0,0 +1,18 @@
+package scala.tools.nsc
+package settings
+
+import org.junit.Assert._
+import org.junit.Test
+import org.junit.runner.RunWith
+import org.junit.runners.JUnit4
+import scala.tools.testing.AssertUtil.assertThrows
+
+@RunWith(classOf[JUnit4])
+class ScalaVersionTest {
+ // SI-8711
+ @Test def versionUnparse() {
+ val v = "2.11.3"
+
+ assertEquals(ScalaVersion(v).unparse, v)
+ }
+}