fix basic tests.

This commit is contained in:
Jae Kwon
2014-10-04 19:16:49 -07:00
parent 11a79f11e0
commit 1ae9ecd2a9
18 changed files with 443 additions and 270 deletions

View File

@ -7,7 +7,10 @@ import (
func BinaryBytes(b Binary) []byte {
buf := bytes.NewBuffer(nil)
b.WriteTo(buf)
_, err := b.WriteTo(buf)
if err != nil {
panic(err)
}
return buf.Bytes()
}