You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.NoError(t, err, ":list color returned error")
252
252
s.SetOutput(nil)
253
-
o:=buf.buf.String()[:600]
254
-
assert.Containsf(t, o, "algol_nu: \x1b[1mselect\x1b[0m \x1b[3m\x1b[38;2;102;102;102m'literal'\x1b[0m \x1b[1mas\x1b[0m literal, 100 \x1b[1mas\x1b[0m number \x1b[1mfrom\x1b[0m [sys].[tables]", "expected entry not found for algol_nu %s", o)
253
+
o:=buf.buf.String()
254
+
// Verify that style samples are printed with ANSI color codes
255
+
// Check for presence of ANSI escape sequences (color codes)
256
+
assert.Contains(t, o, "\x1b[", "output should contain ANSI escape codes")
257
+
// Check that a known style name appears (abap is alphabetically early)
258
+
assert.Contains(t, o, "abap:", "output should contain style name")
259
+
// Check that the SQL sample query appears
260
+
assert.Contains(t, o, "select", "output should contain SQL sample")
0 commit comments