Skip to content

Commit

Permalink
aaaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
pablf committed Jan 14, 2024
1 parent a6646fe commit 604f003
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,9 @@ object ProtobufCodecSpec extends ZIOSpecDefault {
suite("Should fail to decode")(
test("unknown wire types") {
for {
d <- decode(Record.schemaRecord, "0F")
d <- decode(Record.schemaRecord, "0F").exit
//d2 <- decodeNS(Record.schemaRecord, "0F").exit
} yield assert(d)(equalTo(Chunk.empty)) //&&
} yield assert(d)(fails(anything)) //&&
//assert(d2)(fails(anything))
},
test("invalid field numbers") {
Expand Down Expand Up @@ -696,6 +696,9 @@ object ProtobufCodecSpec extends ZIOSpecDefault {
}
),
suite("Should fail to decode2")(
test("unknown wire types") {
assertTrue(fromHex("089601") == Chunk.empty)
},
test("unknown wire types") {
assertTrue(fromHex("0F") == Chunk.empty)
},
Expand Down

0 comments on commit 604f003

Please sign in to comment.