Skip to content

Commit

Permalink
Scala Native .getClass.getSimpleName doesn't return $ at the end of o…
Browse files Browse the repository at this point in the history
…bjects
  • Loading branch information
sideeffffect committed Nov 23, 2023
1 parent 83ff0d5 commit c461559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core-tests/shared/src/test/scala/zio/prelude/DebugSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ object DebugSpec extends ZIOBaseSpec {
)
),
test("testTrait")(check(genTestTrait) { c =>
assert(c.debug.render(Renderer.Simple))(equalTo(s"${c.getClass.getSimpleName.init}"))
assert(c.debug.render(Renderer.Simple))(equalTo(s"${c.getClass.getSimpleName.replace("$", "")}"))
})
),
suite("FullRenderer")(
Expand Down Expand Up @@ -190,7 +190,7 @@ object DebugSpec extends ZIOBaseSpec {
)
),
test("testTrait")(check(genTestTrait) { c =>
assert(c.debug.render(Renderer.Full))(equalTo(s"DebugSpec.${c.getClass.getSimpleName.init}"))
assert(c.debug.render(Renderer.Full))(equalTo(s"DebugSpec.${c.getClass.getSimpleName.replace("$", "")}"))
})
),
suite("DebugInterpolator")(
Expand Down

0 comments on commit c461559

Please sign in to comment.