增加单元测试文件
This commit is contained in:
22
util/json_test.go
Normal file
22
util/json_test.go
Normal file
@ -0,0 +1,22 @@
|
||||
// Package util...
|
||||
//
|
||||
// Description : util...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2021-11-05 6:10 下午
|
||||
package util
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
// TestJSONMarshal ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 6:12 下午 2021/11/5
|
||||
func TestJSONMarshal(t *testing.T) {
|
||||
data := `{"name":"zhangdeman", "age":18, "height": 180}`
|
||||
JSONConsoleOutput(data)
|
||||
}
|
Reference in New Issue
Block a user