provisioner/shell: add more tests for UnixReader

This commit is contained in:
Mitchell Hashimoto 2013-10-04 10:47:28 -07:00
parent 4067bab3d4
commit ff970483c4
1 changed files with 4 additions and 4 deletions

View File

@ -15,8 +15,8 @@ func TestUnixReader_impl(t *testing.T) {
} }
func TestUnixReader(t *testing.T) { func TestUnixReader(t *testing.T) {
input := "one\r\ntwo\nthree\r\n" input := "one\r\ntwo\n\r\nthree\r\n"
expected := "one\ntwo\nthree\n" expected := "one\ntwo\n\nthree\n"
r := &UnixReader{ r := &UnixReader{
Reader: bytes.NewReader([]byte(input)), Reader: bytes.NewReader([]byte(input)),
@ -33,8 +33,8 @@ func TestUnixReader(t *testing.T) {
} }
func TestUnixReader_unixOnly(t *testing.T) { func TestUnixReader_unixOnly(t *testing.T) {
input := "one\n\ntwo\nthree\n" input := "\none\n\ntwo\nthree\n\n"
expected := "one\n\ntwo\nthree\n" expected := "\none\n\ntwo\nthree\n\n"
r := &UnixReader{ r := &UnixReader{
Reader: bytes.NewReader([]byte(input)), Reader: bytes.NewReader([]byte(input)),