pike.git / lib / modules / Tools.pmod / testsuite.in

version» Context lines:

pike.git/lib/modules/Tools.pmod/testsuite.in:64:   test_hilfe([[ ({ "(", "." }) ]], "")   test_hilfe( ({ "int", "." }), "")   test_hilfe("string a=\"hej",    "Hilfe Error: Unterminated string \"\\\"hej\\n\" at line 1\n")   test_hilfe("({)",[[ "Hilfe Error: \")\" end parenthesis does not match "    "closest start parenthesis \"{\".\n" ]])   test_hilfe( ({ "int c // =3;", "=4;" }), "")   test_hilfe("c;", "4")   test_hilfe( ({ "string a=#\"hej", "san\";" }), "")   test_hilfe("a;", "\"hej\\n\"\n\"san\"") + test_hilfe( ({ "string a=#{hopp","san#};" }), "") + test_hilfe("a;", "\"hopp\\n\"\n\"san\"")   test_hilfe("class A{}", "")   test_hilfe("A();", "HilfeInput()->A()")   test_hilfe("A a=A();", "")   test_hilfe("class { int i=4; }()->i;", "4")   // test("class A{}();", "object")   test_hilfe("indices((<1,2>));","({ /""* 2 elements *""/\n 1,\n 2\n})")   test_hilfe("void nop(mixed m){};", "")   test_hilfe("nop(({}));",    "Compiler Warning: 1: Returning a void expression. Converted to zero.\n"    "0")
pike.git/lib/modules/Tools.pmod/testsuite.in:188:   test_hilfe("b->i;", "3");      test_hilfe("sscanf(\"abc\"[0..2],\"%s\",string s);", "1")   test_hilfe("s;","\"abc\"")      test_hilfe("new", "")   test_hilfe("int a = 3;", "")   test_hilfe("int b = 23;", "")   test_hilfe("a & b;", "3")    + test_hilfe("switch(a) { case 2: return 1; case 3: return 2; }", "Ok.\n") +  + test_hilfe("String.Buffer b = String.Buffer();", "") + test_hilfe("String.Buffer b = String.Buffer();", "") +  + test_hilfe( ({ "#\"", "set fisk\";" }), "\"\\n\"\n\"set fisk\""); + test_hilfe("set hedda", ""); + test_hilfe("f;", "0.0"); +    test_do( add_constant("testhilfe") )      test_true([[ Tools.Hilfe.StdinHilfe ]])   test_true([[ Tools.Hilfe.GenericHilfe ]])   test_true([[ Tools.Hilfe.GenericAsyncHilfe ]])   test_true([[ Tools.Hilfe.main ]])         // Tools.Legal   test_true([[ has_prefix(Tools.Legal.Copyright.get_latest_pike(), "Copyright © ") ]])
pike.git/lib/modules/Tools.pmod/testsuite.in:224:    foreach(indices(Tools.Standalone);; string name)    if( name!="process_files" && programp(Tools.Standalone[name]) &&    !stringp(Tools.Standalone[name]()->description) )    {    ret=0;    werror("Missing description for %O.\n",name);    }    return ret;   ]], 1)    + cond_resolv(Tools.Markdown, [[ +  + define(test_md_eq, [[ +  test_eq(Tools.Markdown.parse($1, ([ "newline" : false ])), $2) +  ]]) +  + test_md_eq( [[ "# Header 1" ]], [[ "<h1 id='header-1'>Header 1</h1>" ]] ) + test_md_eq( [[ "## Header 2" ]], [[ "<h2 id='header-2'>Header 2</h2>" ]] ) + test_md_eq( [[ "\\# Header 1" ]], [[ "<p># Header 1</p>" ]] ) +  + ]]) +  +    END_MARKER