add examples and test cases

This commit is contained in:
Simon Waldherr
2018-10-19 20:51:21 +02:00
parent ac541f60b5
commit 4cf804ae09
4 changed files with 34 additions and 9 deletions

11
zplgfa_test.go Normal file
View File

@@ -0,0 +1,11 @@
package zplgfa
import (
"testing"
)
func Test_CompressASCII(t *testing.T) {
if str := CompressASCII("FFFFFFFF000000"); str != "NFL0" {
t.Fatalf("CompressASCII failed")
}
}