Skip to content

Commit 91fd0b1

Browse files
authored
Add more missing tests for collections
1 parent bbc1d70 commit 91fd0b1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ class JsonCodecMakerNewTypeSpec extends VerifyingSpec {
7575
verifySerDeser(make[collection.mutable.CollisionProofHashMap[String, Int]],
7676
collection.mutable.CollisionProofHashMap[String, Int]("WWW" -> 1, "VVV" -> 2),
7777
"""{"WWW":1,"VVV":2}""")
78+
verifySerDeser(make[collection.immutable.TreeSeqMap[String, Int]],
79+
collection.immutable.TreeSeqMap[String, Int]("WWW" -> 1, "VVV" -> 2),
80+
"""{"WWW":1,"VVV":2}""")
81+
verifySerDeser(make[collection.immutable.VectorMap[String, Int]],
82+
collection.immutable.VectorMap[String, Int]("WWW" -> 1, "VVV" -> 2),
83+
"""{"WWW":1,"VVV":2}""")
7884
}
7985
"don't generate codecs for union types with proper compilation error" in {
8086
assert(intercept[TestFailedException](assertCompiles {
@@ -209,4 +215,4 @@ class JsonCodecMakerNewTypeSpec extends VerifyingSpec {
209215
"""["VVV",1.2,true,{"WWW":null,"XXX":777}]""")
210216
}
211217
}
212-
}
218+
}

0 commit comments

Comments
 (0)