pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:9230:    "#define TOSTR2(X) TOSTR(X)\n"    "constant val = TOSTR2(FOO);\n")()->val;   ]], "BAR")   test_equal([[    compile_string("#define FOO\n"    "#define TOSTR(X) #X\n"    "#define TOSTR2(X) TOSTR(X)\n"    "constant val = TOSTR2(FOO);\n")()->val;   ]], "")   test_eq([[cpp("foo _Pragma(\"strict_types \\\\back \\\"str\\\"\") bar")]], -  "# 1 \"-\"\nfoo \n#pragma strict_types \\back \"quote\"\n#1 \"-\"\n bar") +  "# 1 \"-\"\nfoo \n#pragma strict_types \\back \"str\"\n#1 \"-\"\n bar")   test_equal([[    compile_string(Locale.Charset.encoder("ebcdic-us")->    feed("#charset ebcdic-us\n"    "constant val = \"abc\";\n")->drain())()->val;   ]], "abc")   test_eq([[cpp("\\\n")]], "# 1 \"-\"\n\n")   test_eq([[cpp("#if 1\\\n-1\nfoo\n#endif\n")]], "# 1 \"-\"\n\n\n\n\n")   test_any([[    Stdio.write_file("testsuite_test.h", "");    return compile_string(#"