File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
msgpack-core/src/test/scala/org/msgpack/value Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,15 @@ class ValueTest extends MessagePackSpec
2424 def checkSuccinctType (pack: MessagePacker => Unit , expectedAtMost: MessageFormat ) {
2525 val b = createMessagePackData(pack)
2626 val v1 = MessagePack .newDefaultUnpacker(b).unpackValue()
27- v1.asIntegerValue().mostSuccinctMessageFormat().ordinal() shouldBe <= (expectedAtMost.ordinal())
27+ val mf = v1.asIntegerValue().mostSuccinctMessageFormat()
28+ mf.getValueType shouldBe ValueType .INTEGER
29+ mf.ordinal() shouldBe <= (expectedAtMost.ordinal())
2830
2931 val v2 = new Variable
3032 MessagePack .newDefaultUnpacker(b).unpackValue(v2)
31- v2.asIntegerValue().mostSuccinctMessageFormat().ordinal() shouldBe <= (expectedAtMost.ordinal())
33+ val mf2 = v2.asIntegerValue().mostSuccinctMessageFormat()
34+ mf2.getValueType shouldBe ValueType .INTEGER
35+ mf2.ordinal() shouldBe <= (expectedAtMost.ordinal())
3236 }
3337
3438 " Value" should {
You can’t perform that action at this time.
0 commit comments