}
func TestBlobSymmetric(t *testing.T) {
- f := func(ChunkLen uint8, ChunkNum uint8) bool {
+ f := func(ChunkLen, ChunkNum uint8) bool {
if uint16(ChunkLen)*uint16(ChunkNum) > 2000 {
return true
}
if err != ErrBlobBadAtom {
t.Errorf("expected ErrBlobBadChunkLen, got %s", err)
}
-}
\ No newline at end of file
+}
if err != ErrUnexpectedEOC {
t.Errorf("expected ErrUnexpectedEOC, got %v", err)
}
-}
\ No newline at end of file
+}
t.Errorf("expected ErrBadInt, got %v", err)
}
}
+
func TestTemp(t *testing.T) {
object, suc := big.NewInt(1).SetString("-400000000000000000090009090909090909000000000000", 10)
t.Log(object)
t.Error(err)
}
}
+
func TestUInt16Symmetric(t *testing.T) {
f := func(x uint16) bool {
encoded, err := EncodeBuf(x, nil)
t.Error(err)
}
}
+
func TestUInt8Symmetric(t *testing.T) {
f := func(x uint8) bool {
encoded, err := EncodeBuf(x, nil)
}
udecoded, success := decoded.([]any)
if !success {
-
t.Errorf("failed to cast")
}
for i := range x {
encoded, err := EncodeBuf(object, nil)
if err != nil {
t.Errorf("error during encode: %s", err)
-
}
if !bytes.Equal(encoded, hexstring) {
t.Errorf("expected hexstring %s, got %s", hex.EncodeToString(hexstring), hex.EncodeToString(encoded))
}
func TestThrowsWhenStringTooLong(t *testing.T) {
- f := func(x uint8, y uint8) bool {
+ f := func(x, y uint8) bool {
if (y == x) || (y == 0) || (x == 0) {
return true
}
}
func TestTaiSymmetric(t *testing.T) {
- f := func(a int64, b int64) bool {
+ f := func(a, b int64) bool {
x := time.Unix(a, b)
if a > 1<<62-1 {
return true