so give it a hint. you can't say by the screen why answer is wrong. you just keep waisting time. think this is obvious, that you have to change something if you keep receiving those Q.
Also this should probably be marked as a Question because people have solved the kata before in ruby and you are not sure if it is an issue with the kata or not. :)
I suggest you print your output to the console and replace all the spaces with a character e.g. * and make sure you're not adding any extra, the reason is the html formats the spaces when it is displayed.
my result "Phone => 48-421-674-8974, Name => Anastasia, Address => Via Quirinal Roma" should be equal "Phone => 48-421-674-8974, Name => Anastasia, Address => Via Quirinal Roma", gives me fail. doublechecked comparing strings in Ruby, they are equal. What should be the problem? Checked for extra spaces, all seems ok.
"FourscoreandsevenyearsagoourfaathersbroughtforthonthiscontainentanewnationconceivedinzLibertyanddedicatedtothepropositionthatallmenarecreatedequalNowweareengagedinagreahtcivilwartestingwhetherthatnaptionoranynartionsoconceivedandsodedicatedcanlongendureWeareqmetonagreatbattlefiemldoftzhatwarWehavecometodedicpateaportionofthatfieldasafinalrestingplaceforthosewhoheregavetheirlivesthatthatnationmightliveItisaltogetherfangandproperthatweshoulddothisButinalargersensewecannotdedicatewecannotconsecratewecannothallowthisgroundThebravelmenlivinganddeadwhostruggledherehaveconsecrateditfaraboveourpoorponwertoaddordetractTgheworldadswfilllittlenotlenorlongrememberwhatwesayherebutitcanneverforgetwhattheydidhereItisforusthelivingrathertobededicatedheretotheulnfinishedworkwhichtheywhofoughtherehavethusfarsonoblyadvancedItisratherforustobeherededicatedtothegreattdafskremainingbeforeusthatfromthesehonoreddeadwetakeincreaseddevotiontothatcauseforwhichtheygavethelastpfullmeasureofdevotionthatweherehighlyresolvethatthesedeadshallnothavediedinvainthatthisnationunsderGodshallhaveanewbirthoffreedomandthatgovernmentofthepeoplebythepeopleforthepeopleshallnotperishfromtheearth"
is one the test cases. I suggest you adopt a different logic so your solution does not time out?
I'm having a similar issue. All tests pass, but final submission fails with time out error.
so give it a hint. you can't say by the screen why answer is wrong. you just keep waisting time. think this is obvious, that you have to change something if you keep receiving those Q.
Thanks matt!
all the questions complaining about whitespaces has been the fault of the user not the kata.
i've read through questions, to many complaining on whitespaces, i've checked that resulting string is equal to expected in ruby, it returned true.
Also this should probably be marked as a
Question
because people have solved the kata before in ruby and you are not sure if it is an issue with the kata or not. :)I suggest you print your output to the console and replace all the spaces with a character e.g.
*
and make sure you're not adding any extra, the reason is the html formats the spaces when it is displayed.Expected: "Phone => 48-421-674-8974, Name => Anastasia, Address => Via Quirinal Roma", instead got: "Phone => 48-421-674-8974, Name => Anastasia, Address => Via Quirinal Roma"
my result "Phone => 48-421-674-8974, Name => Anastasia, Address => Via Quirinal Roma" should be equal "Phone => 48-421-674-8974, Name => Anastasia, Address => Via Quirinal Roma", gives me fail. doublechecked comparing strings in Ruby, they are equal. What should be the problem? Checked for extra spaces, all seems ok.
can't submit final solution. receive server time outs. don't know is it a server faoult or my code.
does anyone have final tests?