2014-07-14 05:36:26 +00:00
|
|
|
2
|
|
|
|
2
|
|
|
|
1
|
2014-08-29 01:27:23 +00:00
|
|
|
[one
|
|
|
|
two]
|
|
|
|
1
|
|
|
|
[one
|
|
|
|
two]
|
|
|
|
1
|
|
|
|
[one
|
|
|
|
two
|
|
|
|
]
|
2014-07-14 05:36:26 +00:00
|
|
|
|
|
|
|
1 'hello' 1 'there'
|
|
|
|
1 'hello there'
|
|
|
|
1 ''
|
|
|
|
1 '' 1 ''
|
|
|
|
1 'test' 1 '' 1 ''
|
2014-09-22 02:18:56 +00:00
|
|
|
1 'foo' 1 'bar' 1 ' baz'
|
2014-09-22 03:00:26 +00:00
|
|
|
0 a
|
2014-07-14 05:36:26 +00:00
|
|
|
|
|
|
|
1 'hello'
|
|
|
|
1 'h' 1 'ello'
|
|
|
|
1 'h' 1 'e' 1 'llo'
|
|
|
|
1 ''
|
|
|
|
1 't' 1 ''
|
|
|
|
1 't' 1 '' 1 ''
|
|
|
|
1 ' ' 1 't'
|
|
|
|
|
|
|
|
2 'hello' 'there'
|
|
|
|
1 'hello'
|
|
|
|
6 'this' 'is' 'a' 'bunch' 'of' 'words'
|
|
|
|
3 'one' 'two' 'three'
|
|
|
|
0
|
|
|
|
|
|
|
|
5 'h' 'e' 'l' 'l' 'o'
|
|
|
|
1 'h'
|
|
|
|
0
|
2014-08-19 12:28:08 +00:00
|
|
|
|
|
|
|
# read -n tests
|
|
|
|
tes
|
|
|
|
test
|
|
|
|
test
|
|
|
|
tes
|
|
|
|
tin
|
|
|
|
t
|
2014-09-22 02:18:56 +00:00
|
|
|
|
|
|
|
# read -z tests
|
|
|
|
testing
|
|
|
|
test ing
|
|
|
|
newline
|
|
|
|
|
|
|
|
1 'test' 1 'ing'
|
|
|
|
1 'test' 1 ''
|
|
|
|
1 'foo' 1 'bar'
|
|
|
|
2 'foo' 'bar'
|
|
|
|
2 'baz' 'quux'
|
2017-01-21 20:43:20 +00:00
|
|
|
|
|
|
|
# chunked read tests
|
|
|
|
Chunked reads test pass
|