Skip to content

Commit 73eb4d1

Browse files
committed
Add Example test.
1 parent 4f1084b commit 73eb4d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

demo_06/mystrings_test.go

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package mystrings
22

33
import (
4+
"fmt"
45
"strings"
56
"testing"
67

@@ -9,6 +10,11 @@ import (
910
"github.com/leanovate/gopter/prop"
1011
)
1112

13+
func Example() {
14+
fmt.Printf("Created By: %v, and %v", Upper("Gurvinder"), Lower("Kenny"))
15+
// Output: Created By: GURVINDER, and kenny
16+
}
17+
1218
func TestLower(t *testing.T) {
1319
ts := map[string]string{
1420
"HELLO": "hello",

0 commit comments

Comments
 (0)