Skip to content

Commit 97e8d79

Browse files
committed
update Java version
1 parent 7f1a11a commit 97e8d79

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/test/java/com/upokecenter/test/CBORTest.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,13 +1042,21 @@ public static void TestCompareToOne(byte[] bytes) {
10421042
byte[] bytes2 = cbor.EncodeToBytes();
10431043
CBORObject cbor2 = CBORObject.DecodeFromBytes(bytes2);
10441044
if (!cbor.equals(cbor2)) {
1045-
String sbytes = TestCommon.ToByteArrayString(bytes);
1045+
String sbytes = TestCommon.ToByteArrayString(bytes) +
1046+
"\ncbor=" + cbor +
1047+
"\ncborbytes=" + TestCommon.ToByteArrayString(bytes2) +
1048+
"\ncbor2=" + cbor2 +
1049+
"\ncborbytes2=" + TestCommon.ToByteArrayString(cbor2.EncodeToBytes());
10461050
Assert.assertEquals(sbytes, cbor, cbor2);
10471051
} else {
10481052
Assert.assertEquals(cbor, cbor2);
10491053
}
10501054
if (cbor.compareTo(cbor2) != 0) {
1051-
String sbytes = TestCommon.ToByteArrayString(bytes);
1055+
String sbytes = TestCommon.ToByteArrayString(bytes) +
1056+
"\ncbor=" + cbor +
1057+
"\ncborbytes=" + TestCommon.ToByteArrayString(bytes2) +
1058+
"\ncbor2=" + cbor2 +
1059+
"\ncborbytes2=" + TestCommon.ToByteArrayString(cbor2.EncodeToBytes());
10521060
Assert.assertEquals(sbytes, 0, cbor.compareTo(cbor2));
10531061
} else {
10541062
Assert.assertEquals(0, cbor.compareTo(cbor2));

0 commit comments

Comments
 (0)