Skip to content

Commit

Permalink
utils test
Browse files Browse the repository at this point in the history
utils test class issue: #1
  • Loading branch information
krishpranav committed Nov 16, 2021
1 parent 1209e6d commit f8feb8b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions utils_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package godzilla

import "fmt"

func ExampleGetString() {
b := []byte("ABC")
str := GetString(b)
fmt.Println(str)
fmt.Println(len(b) == len(str))

b = nil
str = GetString(b)
fmt.Println(str)
fmt.Println(len(b) == len(str))
fmt.Println(len(str))
}

0 comments on commit f8feb8b

Please # to comment.