Skip to content

Commit

Permalink
Update ErasureHelperTest.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Aug 8, 2022
1 parent ec3838e commit feb7aa3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ class ErasureHelperTest extends AnyFlatSpec with Matchers {
ErasureHelper.erasedOptionalPrimitives(classOf[ErasureHelperTest.SuperType]) shouldBe empty
}
it should "handle OptionSeqLong" in {
ErasureHelper.erasedOptionalPrimitives(classOf[OptionSeqLong]) shouldBe Map("values" -> classOf[Long])
val expected = if (RuntimeUtil.isScala3()) Map.empty[String, Class[_]] else Map("values" -> classOf[Long])
ErasureHelper.erasedOptionalPrimitives(classOf[OptionSeqLong]) shouldBe expected
}
it should "handle SeqOptionLong" in {
ErasureHelper.erasedOptionalPrimitives(classOf[SeqOptionLong]) shouldBe Map("values" -> classOf[Long])
val expected = if (RuntimeUtil.isScala3()) Map.empty[String, Class[_]] else Map("values" -> classOf[Long])
ErasureHelper.erasedOptionalPrimitives(classOf[SeqOptionLong]) shouldBe expected
}
}

0 comments on commit feb7aa3

Please sign in to comment.