Working data structure, optimal seed

This commit is contained in:
Ian Gulliver
2023-12-30 20:14:01 -07:00
parent ac2dfbb5d1
commit 780a9b599b
6 changed files with 140 additions and 132 deletions

View File

@@ -12,7 +12,7 @@ import (
func TestSimple(t *testing.T) {
msg := []byte("this is a test. this is only a test.")
encoded := coding.Encode(seeds.ChatHeap(), msg)
encoded := coding.Encode(seeds.ChatState(), msg)
t.Logf("orig=%d encoded=%d", len(msg), len(encoded))
}
@@ -27,7 +27,7 @@ func TestSMS(t *testing.T) {
for s.Scan() {
msg := s.Bytes()
e := coding.Encode(seeds.ChatHeap(), msg)
e := coding.Encode(seeds.ChatState(), msg)
orig += len(msg)
encoded += len(e)
}