-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buggy text concat. #30
Comments
UPDATE: Not working properly
result:
Working hack:
Result:
|
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
<#30 (comment)>,
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! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While I was playing with texts I got next results:
Here are my results:
You can check failed parts with strange concatenation behavior.
The text was updated successfully, but these errors were encountered: