Ben Coman schreef op 30-3-2014 20:12:
Roelof Wobben wrote:
Hello,

I trying to make the make you own method work.

So I first I added this :

testShout
  self assert: ('Don''t panic' shout = 'DON""T PANIC!')

After that I added this as described in the book.
shout
  ^  self asUppercase. "!"

But still the testrunner gives that there is a failing test on testShout.

Roelof



Rather than just feed you a fish, a little teaching how to fish :)
I would highlight and Inspect each side of the equals sign - so you can look at each string next to the other. Two things to think about:
* commas versus periods
* different types of quote marks
I'll follow up with the answer in the next post.
cheers -ben



Oke, I do not see it
I have now this : self assert: ('Dont panic!' shout = 'DONT PANIC!')
and for me it looks the same and still the test is failing.

and the other part has changed to  ^ self asUppercase, '!'

Roelof




Reply via email to