17 lines
245 B
Go
17 lines
245 B
Go
package base58
|
|
|
|
import (
|
|
"bytes"
|
|
"testing"
|
|
)
|
|
|
|
func TestEncodeDecodeMoneroBase58Bounds(t *testing.T) {
|
|
data := make([]byte, 2048)
|
|
for i := range data {
|
|
data[i] = 0xff
|
|
}
|
|
if bytes.Compare(Decode(Encode(data)), data) != 0 {
|
|
t.Fatal()
|
|
}
|
|
}
|