pike.git / lib / modules / testsuite.in

version» Context lines:

pike.git/lib/modules/testsuite.in:825:   test_eq([[Array.count((["An":"eye", "for":4, "an":"eye"]), "eye")]], 2 )   test_equal([[ Array.count((["An":"eye", "for":4, "an":"eye"])) ]],    [[ ([ "eye":2, 4:1 ]) ]])      test_equal(Array.common_prefix(({ "soliloquise"/1 })), "soliloquise"/1)   test_equal(Array.common_prefix(({ "muzzle"/1, "muzzy"/1 })), "muzz"/1)   test_equal(Array.common_prefix(({ "labyrinth"/1, "diatom"/1 })), ({}))   test_equal(Array.common_prefix(({ "abc"/1, "abc"/1, "abc"/1 })), "abc"/1)   test_equal(Array.common_prefix(({})), ({}))    + 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]])   test_rgb(rgb_to_hsv,[[17,42,112]],[[159,216,112]])
pike.git/lib/modules/testsuite.in:1160:   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();    }   ]])      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 ("\\ ")]],    [[({" "})]])