pike.git / lib / modules / testsuite.in

version» Context lines:

pike.git/lib/modules/testsuite.in:832:   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_any([[ +  // 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) +    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]])