add examples and test cases
This commit is contained in:
13
example_test.go
Normal file
13
example_test.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user