Skip to content

Commit a175d25

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ class JsonCodecMakerNewTypeSpec extends VerifyingSpec {
1616
verifySerDeser(make[_root_.scala.collection.immutable.VectorMap[String, Int]],
1717
_root_.scala.collection.immutable.VectorMap[String, Int]("WWW" -> 1, "VVV" -> 2),
1818
"""{"WWW":1,"VVV":2}""")
19+
verifySerDeser(make[_root_.scala.collection.mutable.ArrayDeque[Int]],
20+
_root_.scala.collection.mutable.ArrayDeque[Int](1, 2), """[1,2]""")
21+
verifySer(make[_root_.scala.collection.mutable.PriorityQueue[Int]],
22+
_root_.scala.collection.mutable.PriorityQueue[Int](2, 1), """[2,1]""")
23+
verifyDeserByCheck(make[_root_.scala.collection.mutable.PriorityQueue[Int]],
24+
"""[2,1]""", (x: _root_.scala.collection.mutable.PriorityQueue[Int]) => x.toList shouldBe List(2, 1))
1925
}
2026
}
2127
}

0 commit comments

Comments
 (0)