func TestColorize(t *testing.T) {

	// mock configs
	conf := config.Config{
		Formatter: "terminal16m",
		Style:     "solarized-dark",
	}

	// mock a sheet
	s := Sheet{
		Text: "echo 'foo'",
	}

	// colorize the sheet text
	s.Colorize(conf)

	// initialize expectations
	want := "[38;2;181;137;0mecho[0m[38;2;147;161;161m"
	want += " [0m[38;2;42;161;152m'foo'[0m"

	// assert
	if s.Text != want {
		t.Errorf("failed to colorize sheet: want: %s, got: %s", want, s.Text)
	}
}
// TestColorize asserts that syntax-highlighting is correctly applied
TestColorize asserts that syntax-highlighting is correctly applied
// TestColorize asserts that syntax - highlighting is correctly applied
func TestColorize(t *testing.T) {
	conf := config.Config{
		Formatter: "terminal16m",
		Style:     "solarized-dark",
	}
	s := Sheet{
		Text: "echo 'foo'",
	}
	s.Colorize(conf)
	want := "[38;2;181;137;0mecho[0m[38;2;147;161;161m"
	want += " [0m[38;2;42;161;152m'foo'[0m"
	if s.Text != want {
		t.Errorf("failed to colorize sheet: want: %s, got: %s", want, s.Text)
	}
}
func TestColorize ( t * testing . T ) { conf := config . Config { Formatter : " " , Style : " " , } s := Sheet { Text : " " , } s . Colorize ( conf ) want := " " want += " " if s . Text != want { t . Errorf ( " " , want , s . Text ) } }
TestColorize asserts that syntax-highlighting is correctly applied
TestColorize asserts that syntax - highlighting is correctly applied
// mock configs // mock a sheet // colorize the sheet text // initialize expectations // assert