File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
src/test/java/com/upokecenter/test Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff 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+ "\n cbor=" + cbor +
1047+ "\n cborbytes=" + TestCommon .ToByteArrayString (bytes2 ) +
1048+ "\n cbor2=" + cbor2 +
1049+ "\n cborbytes2=" + 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+ "\n cbor=" + cbor +
1057+ "\n cborbytes=" + TestCommon .ToByteArrayString (bytes2 ) +
1058+ "\n cbor2=" + cbor2 +
1059+ "\n cborbytes2=" + TestCommon .ToByteArrayString (cbor2 .EncodeToBytes ());
10521060 Assert .assertEquals (sbytes , 0 , cbor .compareTo (cbor2 ));
10531061 } else {
10541062 Assert .assertEquals (0 , cbor .compareTo (cbor2 ));
You can’t perform that action at this time.
0 commit comments