pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2014-05-11
2014-05-11 00:53:47 by Martin Nilsson <nilsson@opera.com>
94fd48aadaede1c0b63cc8d7632e33f9705f5c5b (
12
lines) (+
4
/-
8
)
[
Show
|
Annotate
]
Branch:
8.0
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")