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

13
example_test.go Normal file
View File

@@ -0,0 +1,13 @@
package zplgfa_test
import (
"fmt"
"simonwaldherr.de/go/zplgfa"
)
func ExampleCompressASCII() {
str := zplgfa.CompressASCII("FFFFFFFF000000")
fmt.Print(str)
// Output: NFL0
}