pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2013-06-17
2013-06-17 14:15:28 by Martin Nilsson <nilsson@opera.com>
0b8d2fd866e8b5f4b76170b787cc9e2be0b3f3f9 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Rewrite Locale.Charset to Charset
601:
// Test case from Robert J. Budzynski <Robert.Budzynski@fuw.edu.pl>. // When broken the return type will be mixed. sprintf("%O", typeof(lambda(string s){
-
return
Locale.
Charset.decoder("utf-8")->feed(s)->drain();
+
return Charset.decoder("utf-8")->feed(s)->drain();
})) ]], [[ "function(string : string)" ]])
2307:
define(test_backtrace_line_charset, [[ test_any([[ program p=compile_string(
-
Locale.
Charset.encoder("]]$1[[")->feed(
+
Charset.encoder("]]$1[[")->feed(
"#charset ]]$1[[\n" "int foo()\n" "{\n"
9339:
test_eq([[cpp("foo _Pragma(\"strict_types \\\\back \\\"str\\\"\") bar")]], "#line 1 \"-\"\nfoo \n#pragma strict_types \\back \"str\"\n#line 1 \"-\"\n bar") test_equal([[
-
compile_string(
Locale.
Charset.encoder("ebcdic-us")->
+
compile_string(Charset.encoder("ebcdic-us")->
feed("#charset ebcdic-us\n" "constant val = \"abc\";\n")->drain())()->val; ]], "abc")