diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/main/scala/tests.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/src/main/scala/tests.scala b/tests/src/main/scala/tests.scala index 5142861..ece1d32 100644 --- a/tests/src/main/scala/tests.scala +++ b/tests/src/main/scala/tests.scala @@ -33,6 +33,8 @@ case object Red extends Color case object Green extends Color case object Blue extends Color +case class `%%`(`/`: Int, `#`: String) + object Tests extends TestApp { def tests() = for (i <- 1 to 1000) { @@ -157,6 +159,10 @@ object Tests extends TestApp { | in parameter 'alpha' of product type Beta |""")) + test("typenames and labels are not encoded") { + implicitly[Show[String, `%%`]].show(`%%`(1, "two")) + }.assert(_ == "%%(/=1,#=two)") + val tupleDerivation = test("derive for a tuple") { implicitly[Show[String, (Int, String)]] }.returns() |