]> git.giacomolli.uk - onechat/blobdiff - terminal_markdown_test.go
Order functions by their first use
[onechat] / terminal_markdown_test.go
index a1676f385b67a25c325cc822778cbb284049cd3d..0eb32225f95ac005cbf13305338cafcdc1af2709 100644 (file)
@@ -16,13 +16,13 @@ func TestTerminalMarkdownBlocksAndMarks(t *testing.T) {
                want    []string
        }{
                {
                want    []string
        }{
                {
-                       name:    "headings and a full width rule",
+                       name:    "renders headings and fills the rule width",
                        text:    "# First\n###### Last ###\n---",
                        columns: 12,
                        want:    []string{"\x1b[1mFirst\x1b[0m", "\x1b[1mLast\x1b[0m", "\x1b[2m------------\x1b[0m"},
                },
                {
                        text:    "# First\n###### Last ###\n---",
                        columns: 12,
                        want:    []string{"\x1b[1mFirst\x1b[0m", "\x1b[1mLast\x1b[0m", "\x1b[2m------------\x1b[0m"},
                },
                {
-                       name:    "bold italic and code",
+                       name:    "renders bold italic and inline code styles",
                        text:    "**bold** __also__ *lean* _also_ `code`",
                        columns: 80,
                        want:    []string{"\x1b[1mbold\x1b[0m \x1b[1malso\x1b[0m \x1b[3mlean\x1b[0m \x1b[3malso\x1b[0m \x1b[7mcode\x1b[0m"},
                        text:    "**bold** __also__ *lean* _also_ `code`",
                        columns: 80,
                        want:    []string{"\x1b[1mbold\x1b[0m \x1b[1malso\x1b[0m \x1b[3mlean\x1b[0m \x1b[3malso\x1b[0m \x1b[7mcode\x1b[0m"},