You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-06-24 23:16:47 +02:00
move IndentionStep to config
This commit is contained in:
@ -213,8 +213,9 @@ func Test_whitespace_before_comma(t *testing.T) {
|
||||
func Test_write_array(t *testing.T) {
|
||||
should := require.New(t)
|
||||
buf := &bytes.Buffer{}
|
||||
stream := NewStream(DEFAULT_CONFIG, buf, 4096)
|
||||
stream.IndentionStep = 2
|
||||
newCfg := &Config{IndentionStep: 2}
|
||||
initConfig(newCfg)
|
||||
stream := NewStream(newCfg, buf, 4096)
|
||||
stream.WriteArrayStart()
|
||||
stream.WriteInt(1)
|
||||
stream.WriteMore()
|
||||
|
Reference in New Issue
Block a user