From 6ef12a561439549e5dab2cdd6654c12e3cd2b82b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Koz=C5=82owski?= Date: Mon, 12 Jul 2021 01:43:37 +0200 Subject: [PATCH] Add notes for #60 --- tests/src/test/scala-3/Scala3Tests.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/src/test/scala-3/Scala3Tests.scala b/tests/src/test/scala-3/Scala3Tests.scala index 864d2ee..b7e1124 100644 --- a/tests/src/test/scala-3/Scala3Tests.scala +++ b/tests/src/test/scala-3/Scala3Tests.scala @@ -4,10 +4,14 @@ class Scala3Tests extends FunSuite: test("an enum made of constants should have a normal toString") { assertEquals( ScalaVersion.Scala2.toString, + // https://github.com/polyvariant/better-tostring/issues/60 + // should be "ScalaVersion.Scala2" "Scala2" ) assertEquals( ScalaVersion.Scala3.toString, + // https://github.com/polyvariant/better-tostring/issues/60 + // should be "ScalaVersion.Scala3" "Scala3" ) } @@ -17,6 +21,12 @@ class Scala3Tests extends FunSuite: User.LoggedIn("admin").toString, "User.LoggedIn(name = admin)" ) + assertEquals( + User.Unauthorized.toString, + // https://github.com/polyvariant/better-tostring/issues/60 + // should be "User.Unauthorized" + "Unauthorized" + ) } test("an enum with a custom toString should use it") {