瀏覽代碼

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