소스 검색

update test

Tao Wen 8 년 전
부모
커밋
106636a191
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      example_test.go

+ 2 - 1
example_test.go

@@ -4,9 +4,10 @@ import (
 	"fmt"
 	"github.com/json-iterator/go"
 	"os"
+	"testing"
 )
 
-func ExampleMarshal() {
+func Test_ExampleMarshal(t *testing.T) {
 	type ColorGroup struct {
 		ID     int
 		Name   string