Thanks, found out that there is an extra '\n' symbol in the end of string. First, I tried to put '\0' on the position where '\n' stands, but I dont know why did it not work, so I made the algo stop putting that '\n' in the end and it became correct.
Can you please help me?
Testing result says that Actual does not match Expected, however I checked checked for a match both manually and with the help of string == operator, both told me they are equal.
The problem is that yet I could not find the trick.
Thanks!
P.S. Solving in C++
Can you please help me?
Testing result says that Actual does not match Expected, however I checked checked for a match both manually and with the help of string == operator, both told me they are equal.
The problem is that yet I could not find the trick.
Thanks!
P.S. Solving in C++
Thanks, found out that there is an extra '\n' symbol in the end of string. First, I tried to put '\0' on the position where '\n' stands, but I dont know why did it not work, so I made the algo stop putting that '\n' in the end and it became correct.
Are you sure there're no trailing spaces or some invisible characters? They might not be output in the error message, but comparison will fail.
Can you please help me?
Testing result says that Actual does not match Expected, however I checked checked for a match both manually and with the help of string == operator, both told me they are equal.
The problem is that yet I could not find the trick.
Thanks!
P.S. Solving in C++
Asking for help is not an issue, sorry.
Can you please help me?
Testing result says that Actual does not match Expected, however I checked checked for a match both manually and with the help of string == operator, both told me they are equal.
The problem is that yet I could not find the trick.
Thanks!
P.S. Solving in C++