add error handle; SizeT

This commit is contained in:
free will committed 2021-03-17 10:52:01 +08:00
1 parent de55943194
commit d46b3c15cd
4 files changed
+76 -199

No files matched your search

+11
View File
@@ -14,6 +14,17 @@ import java.math.BigInteger;
*/
public class TestSizeT {
public static void main(String[] args){
// BigInteger bigInteger=new BigInteger("3");
// VlInt vlInt=new VlInt(bigInteger);
// System.out.println(vlInt.isEqual(2));
byte[] b1 = new byte[]{(byte) 0xf1, (byte) 0xff, (byte) 0xff};//241,0,127
SizeT start1 = new SizeT(b1);
System.out.println("VlIntBytes:"+start1.getVlIntBytes().length);
System.out.println("VlIntValue:"+start1.getVlIntValue());
System.out.println(start1.toString());
}
@Test
public void testIsEqual(){
BigInteger bigInteger = new BigInteger("3");