pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-04
2014-12-04 19:24:57 by Martin Nilsson <nilsson@opera.com>
39ea7db94f4a85aeee1c189bc1737d97d8b6c92b (
8
lines) (+
4
/-
4
)
[
Show
|
Annotate
]
Branch:
bill/master_archive_support
Fixed callablep for multi-level arrays.
10464:
// - callablep test_true( callablep(time) )
-
test_true( callablep(String.capitalize) )
-
test_true( callablep(CommonLog.read) )
-
test_true( callablep(ADT.Stack) )
+
test_true( callablep(String.Buffer) ) test_true( callablep( class { void `()() { } }() ) ) test_false( callablep(String.Buffer()) ) test_true( callablep( ({}) ) ) test_true( callablep( ({ 0,0 }) ) )
-
test_
false
( callablep( ({ 0,1 }) ) )
+
test_
treu
( callablep( ({ 0,1 }) ) )
test_true( callablep( ({ time }) ) ) test_true( callablep( ({ time, 0 }) ) ) test_false( callablep( ({ "a", time }) ) )
10482:
test_false( callablep( (< time >) ) ) test_false( callablep( 0 ) ) test_false( callablep( 7 ) )
+
test_true( callablep( ({ ({ 0, 1, time }) }) ) )
+
test_false( callablep( ({ ({ 0, "" }) }) ) )
// - cd