C# format tool from the command line.

closingSquareBracketsMustBeSpacedCorrectly_test.go 455B

    package rules import ( "bytes" "fmt" "testing" ) func TestClosingSquareBracketsMustBeSpacedCorrectly(t *testing.T) { input := []byte(`new string[ ]{}; new int[1 ] ; new string[ "blah", "[meh].[bleh]", ]`) expected := []byte(`new string[] {}; new int[1]; new string[ "blah", "[meh].[bleh]", ]`) actual := applyClosingSquareBracketsMustBeSpacedCorrectly(input) if !bytes.Equal(expected, actual) { fmt.Println(string(actual)) t.Fail() } }