Branch: Tag:

2015-11-15

2015-11-15 21:21:12 by Martin Nilsson <nilsson@fastmail.com>

Use ifefun where possible and needed.

7:   test_compile_any([[#pike 8.1]])   test_compile_any([[#pike 8.2]])    - cond([[all_constants()->_verify_internals]], + ifefun(_verify_internals,   [[    test_do(_verify_internals())   ]]);
2355:   test_any([[ class X { int y; class Z { protected void destroy() { y++; } } }; X x=X(); destruct(x->Z()); return x->y;]],1)   test_any([[ class X { int y; class Z { protected void create() { y++; } } }; X x=X(); destruct(x->Z()); return x->y;]],1)    - cond([[all_constants()->_debug]], + ifefun(_debug,   [[    test_do(_debug(_debug(0)))   ]])
5154:   test_true([[ ("foobar"/"o") & ({ "foo" }) ]])   test_any([[ array a="foo bar"/" "; return sizeof(a & ({"foo"}))]],1)    - cond([[all_constants()->_verify_internals]], + ifefun(_verify_internals,   [[    test_do(_verify_internals())   ]])
7752:    array b=({j+13,j+11,j-1,j+8,j+16,j+15,j+12});    return sizeof( a-b )]],0);    - cond([[all_constants()->_verify_internals]], + ifefun(_verify_internals,   [[    test_do(_verify_internals())   ]])
9496:    });   ]])    - cond([[all_constants()->_verify_internals]], + ifefun(_verify_internals,   [[    test_do(_verify_internals())   ]])
10470:   // - _typeof      // - _verify_internals - cond([[all_constants()->_verify_internals]], + ifefun(_verify_internals,   [[    test_do(_verify_internals())   ]])
10569:   test_eq(all_constants()["all_constants"],all_constants)      // - all_threads - cond([[all_constants()->thread_create]], + ifefun(thread_create,   [[    test_true(arrayp(all_threads()))    test_true(sizeof(all_threads()))
11263:   // - load_module      // - localtime - cond([[all_constants()->localtime]],[[ + ifefun(localtime,[[    test_true(mappingp(localtime(0)))    test_do([[int t = -1; catch(localtime(t));]])   ]])
11433:   test_equal(mkmultiset(({(<>)})), (<(<>)>))      // - mktime - cond([[all_constants()->mktime]], + ifefun(mktime,   [[    test_true([[mktime( ([    "sec":58,
12727:   test_any([[string s="foo"; s[2]=07777777; s[1]--; return s;]],"fn\7777777")   test_any([[string s="foo"; s[2]='t'; catch (s[10]='x'); return s;]], "fot")    - cond([[all_constants()->_verify_internals]], + ifefun(_verify_internals,   [[    test_do(_verify_internals())   ]])