invitation bytearray copy debug #1
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ycc
2023-12-31 23:28:10 +01:00
parent 6511ff6280
commit 289e39c677
3 changed files with 8 additions and 9 deletions

View File

@ -2,6 +2,8 @@ package meowlib
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestCompress(t *testing.T) {
@ -18,4 +20,9 @@ func TestCompress(t *testing.T) {
println(len(serialized))
compressed, _ := cc.Compress()
println(len(compressed))
ncc, err := NewContactCardFromCompressed(compressed)
if err != nil {
println(err)
}
assert.Equal(t, ncc.Name, cc.Name)
}