diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-11-30 15:17:14 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-11-30 16:55:59 +0100 |
commit | a190cfe4f0ece8221d8d7e4b27e4bf73ca665a56 (patch) | |
tree | 8caff7661ea7055db1359463e11d9704366a905e /library/test | |
parent | 8b7a7ea0cf25b55ea842fe1f299e1576b8bc3e5a (diff) | |
download | dotty-a190cfe4f0ece8221d8d7e4b27e4bf73ca665a56.tar.gz dotty-a190cfe4f0ece8221d8d7e4b27e4bf73ca665a56.tar.bz2 dotty-a190cfe4f0ece8221d8d7e4b27e4bf73ca665a56.zip |
Get rid of nesting implicits
Diffstat (limited to 'library/test')
-rw-r--r-- | library/test/dotty/ShowTests.scala | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/library/test/dotty/ShowTests.scala b/library/test/dotty/ShowTests.scala index 92539d0c4..7230106d5 100644 --- a/library/test/dotty/ShowTests.scala +++ b/library/test/dotty/ShowTests.scala @@ -34,7 +34,6 @@ class ShowTests { } @Test def showCar = { - import Show.List._ case class Car(model: String, manufacturer: String, year: Int) implicit val showCar = new Show[Car] { def show(c: Car) = @@ -51,14 +50,12 @@ class ShowTests { } @Test def showOptions = { - import Show.Option._ assertEquals("None", None.show) assertEquals("None", (None: Option[String]).show) assertEquals("Some(\"hello opt\")", Some("hello opt").show) } @Test def showMaps = { - import Show.Map._ val mp = scala.collection.immutable.Map("str1" -> "val1", "str2" -> "val2") assertEquals("Map(\"str1\" -> \"val1\", \"str2\" -> \"val2\")", mp.show) } @@ -67,9 +64,6 @@ class ShowTests { case class Car(model: String, manufacturer: String, year: Int) assertEquals("Car(Mustang,Ford,1967)", Car("Mustang", "Ford", 1967).show) - assertEquals( - "Map(str1 -> val1, str2 -> val2)", - scala.collection.immutable.Map("str1" -> "val1", "str2" -> "val2").show - ) + assertEquals("Map()", Map().show) } } |