pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-04
2014-12-04 19:26:16 by Martin Nilsson <nilsson@opera.com>
4fbb8d56d154e95c856f8d039ee9a19abf2e845b (
12
lines) (+
4
/-
8
)
[
Show
|
Annotate
]
Branch:
bill/master_archive_support
Somehow this test framework cleanup triggers a core dump for me.
7579:
// typeof test_eq(sprintf("%O", typeof(1)),"int(1..1)") test_eq(sprintf("%O", typeof("")),"string(zero)")
-
test
_
any
(
[[
-
//
Suppress warnings.
-
class handler {
-
void compile_warning (
string
file
,
int line, string err) {};
-
};
-
return compile
_
string
(
"string
s =
sprintf(
\
"%
O\
", typeof(
\
"
\
"[0]))
;",
-
"-", handler())()->s;
-
]], "zero")
+
ignore
_
warning
(
"Indexing
the
empty
string
.
"
,
[[
+
test
_
aq
(
[[
sprintf("%
O
", typeof(""[0])) ]], "zero")
+
]])
test_eq(sprintf("%O", typeof(0.0)),"float") test_eq(sprintf("%O", typeof(all_constants()["all_constants"])),"mixed")