mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 15:46:43 +00:00
* initial * fixed tests * eip155 tests * progress * fix * fix TestFetchStateSyncEvents* * debug * fixed with updated list of validators * fix * a bit more stable * optimize allocations * linters * fix vals copy * a bit of refactoring * update TestGetTransactionReceiptsByBlock * remove logs from TestGetTransactionReceiptsByBlock in favour of checks * comments * Linters * linters * fixes after merge * fixes after merge * fixes after merge * fixes after merge * fail fast Co-authored-by: Evgeny Danienko <6655321@bk.ru>
20 lines
287 B
Go
20 lines
287 B
Go
package cli
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestCodeBlock(t *testing.T) {
|
|
t.Parallel()
|
|
assert := require.New(t)
|
|
|
|
lines := []string{
|
|
"abc",
|
|
"bcd",
|
|
}
|
|
|
|
expected := "```\n" + "abc\n" + "bcd\n" + "```"
|
|
assert.Equal(expected, CodeBlock(lines))
|
|
}
|