X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=cmd%2Fsafcm%2Fterm_test.go;h=e5faf174c6e43f02603bfdb785154f07ff9eff33;hb=4299c5d0946ecfa034e9eefe6b16e50bab94a820;hp=f433eb589f8486059ca73fec2f6d6f57c9f73f08;hpb=992eaae7fec45c2d58fff89d1bc0ae920a899296;p=safcm%2Fsafcm.git diff --git a/cmd/safcm/term_test.go b/cmd/safcm/term_test.go index f433eb5..e5faf17 100644 --- a/cmd/safcm/term_test.go +++ b/cmd/safcm/term_test.go @@ -83,11 +83,10 @@ func TestEscapeControlCharacters(t *testing.T) { 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)) + } }) } }