pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:4753:   test_any([[mixed s="foo"; s++; return s;]],"foo1")   test_any([[mixed s="foo"; return ++s;]],"foo1")   test_any([[float p=2.0; return p--;]],2.0);   test_any([[float p=2.0; p--; return p;]],1.0)   test_any([[float p=2.0; return --p;]],1.0)   test_any([[mapping m=([0:2]); m[0]++; return m[0]++;]], 3);   test_any([[mapping m=([0:2]); ++m[0]; return ++m[0];]], 4);   test_any([[mapping m=([0:2]); m[0]--; return m[0]--;]], 1);   test_any([[mapping m=([0:2]); --m[0]; return --m[0];]], 0);    + test_any_equal([[ +  // Test that the type fields are cleared when the mapping is cleared. +  mapping m = (["a":"a"]); +  m_delete(m, "a"); +  return m; + ]], ([])) +    test_compile_error(int foo() { LJjjjjJJJ ; })   test_true(class c { constant i=1; }()->i)   test_true(class c { constant i=0; mixed `->(string s) { if(s=="i") return 1; }}()->i)   test_true(class c { constant i=1; mixed `->(string s) { return 0; }}()["i"])   test_true(class c { constant i=0; mixed `[](string s) { if(s=="i") return 1; }}()["i"])   test_true(class c { optional constant i=0; mixed `[](string s) { if(s=="i") return 1; }}()["i"])   test_true(class c { mixed `[]=(mixed a, mixed b) { if(a!=b) throw(1); }}()[1]=1)   test_true(class c { mixed `->=(mixed a, mixed b) { if(a!=b) throw(1); }}()->i="i")      test_do([[