pike.git / lib / modules / testsuite.in

version» Context lines:

pike.git/lib/modules/testsuite.in:1205:    for (int i=0; i < 100; i++) {    // The following line trigged the bug 33% of the time.    get_iterator(([1:1]))->_random(random_string, random);    }   ]])      test_do(add_constant("random",Random.Deterministic(17)->random))   test_any_equal([[    string r = "";    for(int i; i<5; i++) +  { +  int n;    foreach(random(Mapping.Iterator(([1:"1",2:"2",3:"3"])));; string v) -  r += v; +  n++; +  r += n; +  }    return r; - ]], "233323123") + ]], "21123")   test_do(add_constant("random",Random.System()->random))      dnl - Multiset      test_eq( sizeof(Multiset.Iterator((<1,2,3>))), 3 )      test_do(add_constant("random",Random.Deterministic(17)->random))   test_any_equal([[    string r = "";    for(int i; i<5; i++) -  +  { +  int n;    foreach(random(Multiset.Iterator((<2,4,6,8,9>))); int v;) -  r += v; +  n++; +  r += n; +  }    return r; - ]], "689946894689689") + ]], "31443")   test_do(add_constant("random",Random.System()->random))      dnl - Process   test_equal([[Process.split_quoted_string("test ")]],[[({"test"})]])   test_equal([[Process.split_quoted_string("'test'")]],[[({"test"})]])   test_equal([[Process.split_quoted_string("foo 'test' bar")]],[[({"foo","test","bar"})]])   test_equal([[Process.split_quoted_string ("\\\"")]],    [[({"\""})]])   test_equal([[Process.split_quoted_string ("\\a")]],    [[({"a"})]])