pike.git / src / modules / _Stdio / testsuite.in

version» Context lines:

pike.git/src/modules/_Stdio/testsuite.in:919:    if( b->read_cstring()!="" ) return 1;    if( b->read_cstring()!="" ) return 2;    if( b->read_cstring()!="a" ) return 3;    if( b->read_cstring('\n')!="bb" ) return 4;    if( !undefinedp(b->read_cstring()) ) return 5;    if( b->read()!="ccc" ) return 6;    return -1;   ]], -1)      test_any_equal([[ -  Stdio.Buffer b = Stdio.Buffer("AAAABAABABAAABAABBABB"); +  Stdio.Buffer buf = Stdio.Buffer("AAAABAABABAAABAABBABB");    array(string) res = ({});    string s;    while (s = buf->read_cstring('B')) {    res += ({ s });    }    return res;   ]], ({ "AAAA", "AA", "A", "AAA", "AA", "", "A", "" }))      test_any_equal([[ -  Stdio.Buffer b = Stdio.Buffer("AAAABAABABAAABAABBABB"); +  Stdio.Buffer buf = Stdio.Buffer("AAAABAABABAAABAABBABB");    array(string) res = ({});    string s;    while (s = buf->read_cstring('B', 'A')) {    res += ({ s });    }    return res;   ]], ({ "AAAA", "AA", "ABAAABAA", "", "AB" }))      dnl search