pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2000-01-26
2000-01-26 13:45:55 by Fredrik Noring <noring@nocrew.org>
87019d59af31f01b92a3937f9175a656752768c0 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Small fix for has_index and has_value.
Rev: src/testsuite.in:1.264
1:
-
test_true([["$Id: testsuite.in,v 1.
263
2000/01/
24
03
:
28
:
29
mast
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
264
2000/01/
26
13
:
45
:
55
noring
Exp $"]]);
cond([[all_constants()->_verify_internals]], [[
3738:
test_false([[ has_index([mixed] ([ "a":"A" ]), "A") ]]) test_true([[ has_index([mixed] ([ "a":"A", "b":"B", "c":"C" ]), "b") ]]) test_false([[ has_index([mixed] ([ "a":"A", "b":"B", "c":"C" ]), "B") ]])
-
test_
eval_error
([[ has_index((class {})(), "foo") ]])
+
test_
false
([[ has_index((class {})(), "foo") ]])
test_true([[has_index((class{array _indices(){return({"a","b"});}})(),"b")]]) // - has_value
3753:
test_false([[ has_value([mixed] ([ "a":"A" ]), "a") ]]) test_true([[ has_value([mixed] ([ "a":"A", "b":"B", "c":"C" ]), "B") ]]) test_false([[ has_value([mixed] ([ "a":"A", "b":"B", "c":"C" ]), "b") ]])
-
test_
eval_error
([[ has_value((class {})(), "foo") ]])
+
test_
false
([[ has_value((class {})(), "foo") ]])
test_true([[has_value((class{array _values(){return({"a","b"});}})(),"b")]]) // - search