diff options
author | Jon Pretty <jon.pretty@propensive.com> | 2017-11-10 15:21:03 +0000 |
---|---|---|
committer | Jon Pretty <jon.pretty@propensive.com> | 2017-11-10 15:21:03 +0000 |
commit | 2ae9a65ed0b773f77b5cd8d8c134a125bbaccf5d (patch) | |
tree | 345f7f8a497f5fc12e2aaad9cf9e8119e0059d62 /tests | |
parent | e4ba86981d70ed96d56fa998b5c905a1720f4db2 (diff) | |
download | magnolia-2ae9a65ed0b773f77b5cd8d8c134a125bbaccf5d.tar.gz magnolia-2ae9a65ed0b773f77b5cd8d8c134a125bbaccf5d.tar.bz2 magnolia-2ae9a65ed0b773f77b5cd8d8c134a125bbaccf5d.zip |
Scalafmt
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/main/scala/tests.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/src/main/scala/tests.scala b/tests/src/main/scala/tests.scala index 10eb465..5142861 100644 --- a/tests/src/main/scala/tests.scala +++ b/tests/src/main/scala/tests.scala @@ -55,7 +55,9 @@ object Tests extends TestApp { test("local implicit beats Magnolia") { import magnolia.examples._ - implicit val showPerson: Show[String, Person] = new Show[String, Person] { def show(p: Person) = "nobody" } + implicit val showPerson: Show[String, Person] = new Show[String, Person] { + def show(p: Person) = "nobody" + } implicitly[Show[String, Address]].show(Address("Home", Person("John Smith", 44))) }.assert(_ == "Address(line1=Home,occupant=nobody)") |