pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:11028:
test_hash_value("hello") test_hash_value(({})) dnl (<>) is mutable. test_true(intp(hash_value((<>)))) dnl ([]) is mutable. test_true(intp(hash_value(([])))) test_hash_value(time) test_hash_value(ADT.Stack) dnl test_hash_value(String) test_hash_value(typeof(true))
+
test_any([[
+
int v = 0;
-
+
void trampoline() {
+
v = 1;
+
};
+
+
int(0..1) check_hash()
+
{
+
function f1 = trampoline;
+
function f2 = trampoline;
+
return hash_value(f1) == hash_value(f2);
+
};
+
+
return check_hash();
+
]], 1)
+
+
// - indices test_equal(indices("foo"),({0,1,2})) test_equal(indices(({'f','o','o'})),({0,1,2})) test_equal(Array.sort_array(indices(([7:3,8:9,99:12]))),({7,8,99})) test_equal(Array.sort_array(indices((<7,8,99>))),({7,8,99})) test_equal(mkmultiset(indices(class{constant a="a"; constant b="b";}())), (<"a","b">)) // - initgroups // - innetgrp