Skip to content

Commit 7a7eca6

Browse files
authored
Add missing tests for mutable.ArrayDeque and mutable.PriorityQueue collections
1 parent a175d25 commit 7a7eca6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jsoniter-scala-macros/shared/src/test/scala-3/com/github/plokhotnyuk/jsoniter_scala/macros/JsonCodecMakerNewTypeSpec.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ class JsonCodecMakerNewTypeSpec extends VerifyingSpec {
8181
verifySerDeser(make[collection.immutable.VectorMap[String, Int]],
8282
collection.immutable.VectorMap[String, Int]("WWW" -> 1, "VVV" -> 2),
8383
"""{"WWW":1,"VVV":2}""")
84+
verifySerDeser(make[collection.mutable.ArrayDeque[Int]],
85+
collection.mutable.ArrayDeque[Int](1, 2), """[1,2]""")
86+
verifySer(make[collection.mutable.PriorityQueue[Int]],
87+
collection.mutable.PriorityQueue[Int](2,1), """[2,1]""")
88+
verifyDeserByCheck(make[collection.mutable.PriorityQueue[Int]],
89+
"""[2,1]""", (x: collection.mutable.PriorityQueue[Int]) => x.toList shouldBe List(2, 1))
8490
}
8591
"don't generate codecs for union types with proper compilation error" in {
8692
assert(intercept[TestFailedException](assertCompiles {

0 commit comments

Comments
 (0)