pike.git / lib / modules / testsuite.in

version» Context lines:

pike.git/lib/modules/testsuite.in:843:    // Check foreach iterator stepping behavior.    array a = indices (allocate (7));    Array.Iterator i = get_iterator (a);    foreach (i;; int v)    if (v > 3) break;    foreach (i;; int v)    if (v < 5) break;    foreach (i;; int v)    return v;   ]], 4) + test_eq( sizeof(Array.Iterator(({1,2,3,4}))), 4 )      dnl - Colors      define(test_rgb,[[    test_equal(Colors.$1($2),({$3}))    test_equal(Colors.$1(({$2})),({$3}))   ]])      test_rgb(rgb_to_hsv,[[0,0,0]],[[0,0,0]])   test_rgb(rgb_to_hsv,[[255,255,255]],[[0,0,255]])
pike.git/lib/modules/testsuite.in:1179:   test_eq( Int.parity(6), 0 )   test_eq( Int.parity(7), 1 )      test_eq( Int.swap_word(array_sscanf("\1\2", "%2c")[0]),    array_sscanf("\2\1", "%2c")[0])   test_eq( Int.swap_long(array_sscanf("\1\2\3\4", "%4c")[0]),    array_sscanf("\4\3\2\1", "%4c")[0])      dnl - Mapping   dnl Mapping.delete - dnl Mapping.Iterator +     -  + test_eq( sizeof(Mapping.Iterator(([1:2,3:4]))), 2 ) +    test_do([[    // Test for [bug 5085].    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);    }   ]])      dnl - Multiset - dnl Multiset.Iterator +     -  + test_eq( sizeof(Multiset.Iterator((<1,2,3>))), 3 ) +    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"})]])   test_equal([[Process.split_quoted_string ("\\ ")]],    [[({" "})]])