aboutsummaryrefslogtreecommitdiffstats
path: root/rlp_test.go
diff options
context:
space:
mode:
authorobscuren <obscuren@obscura.com>2013-12-30 06:52:46 +0800
committerobscuren <obscuren@obscura.com>2013-12-30 06:52:46 +0800
commit0747aa3a3bd78cc9b99ea72cf45e4cc4bfc301f5 (patch)
treeba61f39172f944f80f9c9a745b43f27ed06ed06d /rlp_test.go
parent74bc45116aa1c5d0e549f522dccefc58356c1410 (diff)
downloadgo-tangerine-0747aa3a3bd78cc9b99ea72cf45e4cc4bfc301f5.tar
go-tangerine-0747aa3a3bd78cc9b99ea72cf45e4cc4bfc301f5.tar.gz
go-tangerine-0747aa3a3bd78cc9b99ea72cf45e4cc4bfc301f5.tar.bz2
go-tangerine-0747aa3a3bd78cc9b99ea72cf45e4cc4bfc301f5.tar.lz
go-tangerine-0747aa3a3bd78cc9b99ea72cf45e4cc4bfc301f5.tar.xz
go-tangerine-0747aa3a3bd78cc9b99ea72cf45e4cc4bfc301f5.tar.zst
go-tangerine-0747aa3a3bd78cc9b99ea72cf45e4cc4bfc301f5.zip
Removed logs from tests and updated rlp encoding to include byte slices
Diffstat (limited to 'rlp_test.go')
-rw-r--r--rlp_test.go12
1 files changed, 5 insertions, 7 deletions
diff --git a/rlp_test.go b/rlp_test.go
index 6a34aecbc..68676d030 100644
--- a/rlp_test.go
+++ b/rlp_test.go
@@ -7,13 +7,14 @@ import (
func TestEncode(t *testing.T) {
strRes := "Cdog"
+
bytes := Encode("dog")
+
str := string(bytes)
if str != strRes {
t.Error(fmt.Sprintf("Expected %q, got %q", strRes, str))
}
- dec,_ := Decode(bytes, 0)
- fmt.Printf("raw: %v encoded: %q == %v\n", dec, str, "dog")
+ //dec,_ := Decode(bytes, 0)
sliceRes := "\x83CdogCgodCcat"
strs := []string{"dog", "god", "cat"}
@@ -23,8 +24,7 @@ func TestEncode(t *testing.T) {
t.Error(fmt.Sprintf("Expected %q, got %q", sliceRes, slice))
}
- dec,_ = Decode(bytes, 0)
- fmt.Printf("raw: %v encoded: %q == %v\n", dec, slice, strs)
+ //dec,_ = Decode(bytes, 0)
}
func TestMultiEncode(t *testing.T) {
@@ -42,10 +42,8 @@ func TestMultiEncode(t *testing.T) {
}
bytes := Encode(inter)
- fmt.Printf("%q\n", bytes)
- dec, _ := Decode(bytes, 0)
- fmt.Println(dec)
+ Decode(bytes, 0)
}
func BenchmarkEncodeDecode(b *testing.B) {