pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:9582:   test_equal([[    compile_string(Charset.encoder("ebcdic-us")->    feed("#charset ebcdic-us\n"    "constant val = \"abc\";\n")->drain())()->val;   ]], "abc")   test_eq([[cpp("\\\n")]], "#line 1 \"-\"\n\n")   test_eq([[cpp("#if 1\\\n-1\nfoo\n#endif\n")]], "#line 1 \"-\"\n\n\n\n\n")   test_any([[    #define TOSTR(X) #X    return TOSTR(FOO "String with \\ and \" and space" BAR); - ]], "FOO \"String with \\\\ and \\\" and space" BAR") + ]], "FOO \"String with \\\\ and \\\" and space\" BAR")   test_any([[    Stdio.write_file("testsuite_test.h", "");    return compile_string(#"    #include \"\\   testsuite_test.h\"    int line = __LINE__;    ")()->line;   ]], 4)   test_do([[cpp(#"   #define FOO(X) X