提交 e0dba3e1 编写于 作者: M Mislav Marohnić

Add test for multiline title handling

上级 7467e49c
package github
import (
"testing"
"github.com/bmizerany/assert"
)
func TestMessageBuilder_multiline_title(t *testing.T) {
builder := &MessageBuilder{
Message: `hello
multiline
text
the rest is
description`,
}
title, body, err := builder.Extract()
assert.Equal(t, nil, err)
assert.Equal(t, "hello multiline text", title)
assert.Equal(t, "the rest is\ndescription", body)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册