for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
- res := EscapeControlCharacters(tc.isTTY, tc.x)
- if tc.exp != res {
- t.Errorf("res: %s",
- cmp.Diff(tc.exp, res))
- }
+ res := EscapeControlCharacters(tc.isTTY, tc.x)
+ if tc.exp != res {
+ t.Errorf("res: %s", cmp.Diff(tc.exp, res))
+ }
})
}
}