go-ethereum/internal/cli/markdown_test.go
2022-05-26 11:55:44 -07:00

20 lines
285 B
Go

package cli
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestCodeBlock(t *testing.T) {
t.Parallel()
assert := assert.New(t)
lines := []string{
"abc",
"bcd",
}
expected := "```\n" + "abc\n" + "bcd\n" + "```"
assert.Equal(expected, CodeBlock(lines))
}