github.com/v2pro/plz@v0.0.0-20221028024117-e5f9aec5b631/msgfmt/jsonfmt/level_0/bool_test.go (about) 1 package test 2 3 import ( 4 "testing" 5 "github.com/v2pro/plz/msgfmt/jsonfmt" 6 "github.com/v2pro/plz/test" 7 "github.com/v2pro/plz/countlog" 8 "github.com/v2pro/plz/test/must" 9 ) 10 11 func Test_bool(t *testing.T) { 12 t.Run("true", test.Case(func(ctx *countlog.Context) { 13 must.Equal("true", jsonfmt.MarshalToString(true)) 14 })) 15 }