pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:10799:
test_eq(`+("hi\777","there"),"hi\777there") test_eq(`+("hi","there\777"),"hithere\777") test_eq(`+("hi\7777777","there"),"hi\7777777there") test_eq(`+("hi","there\7777777"),"hithere\7777777") test_eq(`+(5,6,"q"), "11q") test_eq(`+(5,"q",6), "5q6") test_eq(`+("",""), "") test_eq(`+("","","a",""), "a")
-
test_eq(`+("a",UNDEFINED), "a0)
+
test_eq(`+("a",UNDEFINED), "a0
"
)
test_eq(`+("human","number",666),"humannumber666") test_eq(`+("human","number",666),"humannumber666") test_eq(`+("human","number",666),"humannumber666") test_eq(`+("human","number",666,111),"humannumber666111") test_eq(`+("humannumber",`+(666+111)),"humannumber777") test_eq(`+("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","x","y"),"abcdefghijklmnopqrstuvxy") test_eq(`+(1.0,1.0),2.0) test_eq(`+(1.0,-1.0),0.0) test_eq(`+(-1.0,-1.0),-2.0) test_equal(`+(({1,2,3}),({4,5,6})),({1,2,3,4,5,6}))
-
+
test_equal(`+(UNDEFINED,({1}),({2})), ({1,2}))
+
test_equal(`+(({1}),UNDEFINED,({2})), ({1,2}))
test_equal(`+((<1,2,3,4>),(<4,5,6>)),(<1,2,3,4,4,5,6>))
-
+
test_equal(`+(UNDEFINED,(<1>),(<2>)), (<1,2>))
+
test_equal(`+((<1>),UNDEFINED,(<2>)), (<1,2>))
test_equal(`+(([0:1,3:6]),([5:2,3:6])),([0:1,3:6,3:6,5:2]))
-
+
test_equal(`+(UNDEFINED,([1:2]),([3:4])), ([1:2,3:4]))
+
test_equal(`+(([1:2]),UNDEFINED,([3:4])), ([1:2,3:4]))
test_equal(17+class{mixed ``+(mixed n){return (<n>);}}(),(<17>)) test_equal(1700000000000000000000+class{mixed ``+(mixed n){return (<n>);}}(),(<1700000000000000000000>)) test_eval_error(Gmp.mpz(1700000000000000000000)+class{mixed ``+(mixed n){return (<n>);}}()) test_do([[ class A (int x) { mixed `+(mixed y) { return this_program(x + (objectp(y)?y->x:y)); } }; add_constant("A",A); ]])