github.com/zerosnake0/jzon@v0.0.9-0.20230801092939-1b135cb83f7f/val_encoder_direct_test.go (about) 1 package jzon 2 3 import ( 4 "testing" 5 ) 6 7 func TestValEncoder_Direct_OmitEmpty(t *testing.T) { 8 t.Run("array", func(t *testing.T) { 9 type st struct { 10 A [1]*int `json:",omitempty"` 11 } 12 checkEncodeValueWithStandard(t, &st{}, nil) 13 }) 14 }