Closed MaxTymchii closed 1 month ago
UPDATE:
Not working properly
var head3 = "Super Hello ";
var tail3 = "Super World!";
function concater(tails) {
println("Inside concater");
head3 = head3 + tails;
assertEqual( head3, "Super Hello Super World!", "head3 = head3 + tails");
}
concater(tail3);
result:
Inside concater
FAIL: head3 = head3 + tails Actual: Super World!Super Hello , Expectation: Super Hello Super World!
Working hack:
var head5 = "It works ";
var tail5 = "Super works!";
function concater3(tail) {
println("Inside concater 3");
var insideHead = head5;
insideHead = insideHead + tail;
assertEqual( insideHead, "It works Super works!", "insideHead += tail");
head5 = insideHead;
assertEqual( head5, "It works Super works!", "head5 = insideHead");
}
concater3(tail5);
Result:
Inside concater 3
PASS: insideHead += tail Actual: It works Super works!
PASS: head5 = insideHead Actual: It works Super works!
on it.
On Mon, Jun 10, 2024 at 12:52 PM Max @.***> wrote:
UPDATE:
Not working properly
var head3 = "Super Hello "; var tail3 = "Super World!";
function concater(tails) { println("Inside concater"); head3 = head3 + tails; assertEqual( head3, "Super Hello Super World!", "head3 = head3 + tails"); }
concater(tail3);
result:
Inside concater FAIL: head3 = head3 + tails Actual: Super World!Super Hello , Expectation: Super Hello Super World!
Working hack:
var head5 = "It works "; var tail5 = "Super works!";
function concater3(tail) { println("Inside concater 3"); var insideHead = head5; insideHead = insideHead + tail; assertEqual( insideHead, "It works Super works!", "insideHead += tail"); head5 = insideHead; assertEqual( head5, "It works Super works!", "head5 = insideHead"); }
concater3(tail5);
Result:
Inside concater 3 PASS: insideHead += tail Actual: It works Super works! PASS: head5 = insideHead Actual: It works Super works!
— Reply to this email directly, view it on GitHub https://github.com/jingoro2112/wrench/issues/30#issuecomment-2158863306, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALIKA23YEPWJ67OW35SZX3ZGXKWXAVCNFSM6AAAAABJCVBKFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJYHA3DGMZQGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
fixed in 6.0.1
BIG THANKS!
While I was playing with texts I got next results:
Here are my results:
You can check failed parts with strange concatenation behavior.