From 77084ee6edc4ed9a622de7c35a1423a355cfe22f Mon Sep 17 00:00:00 2001 From: Jon Pretty Date: Fri, 10 Nov 2017 15:55:08 +0000 Subject: Decode typeNames and labels --- tests/src/main/scala/tests.scala | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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() -- cgit v1.2.3