2014-07-14 13:36:26 +08:00
|
|
|
2
|
|
|
|
2
|
|
|
|
1
|
2014-08-29 09:27:23 +08:00
|
|
|
[one
|
|
|
|
two]
|
|
|
|
1
|
|
|
|
[one
|
|
|
|
two]
|
|
|
|
1
|
|
|
|
[one
|
|
|
|
two
|
|
|
|
]
|
2014-07-14 13:36:26 +08:00
|
|
|
|
|
|
|
1 'hello' 1 'there'
|
|
|
|
1 'hello there'
|
|
|
|
1 ''
|
|
|
|
1 '' 1 ''
|
|
|
|
1 'test' 1 '' 1 ''
|
2014-09-22 10:18:56 +08:00
|
|
|
1 'foo' 1 'bar' 1 ' baz'
|
2014-09-22 11:00:26 +08:00
|
|
|
0 a
|
2014-07-14 13:36:26 +08: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 20:28:08 +08:00
|
|
|
|
|
|
|
# read -n tests
|
|
|
|
tes
|
|
|
|
test
|
|
|
|
test
|
|
|
|
tes
|
|
|
|
tin
|
|
|
|
t
|
2014-09-22 10:18:56 +08: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-22 04:43:20 +08:00
|
|
|
|
|
|
|
# chunked read tests
|
|
|
|
Chunked reads test pass
|