Didn't you forget to return (^) an instance from #directionLooking:? And why do you need to send #yourself?
сб, 30 марта 2019 г. в 21:19, Roelof Wobben <r.wob...@home.nl>: > Hello, > > Im busy with a new challenge from exercism. > Where I have to keep track of a robot , where it facing and on that > coordinate the robot is. > > so I made this function what the test wanted > > createDirection: aString position: aCollection > self robot: (Robot directionLooking: aString) yourself. > ^ self robot asDictonary > > I can see that on the first part a new robot is made with the right data. > but the test wants the data back as a Dictonary > that is why I made the self robot asDictonary line > > but to my suprise the compiler wants it be a class method where I expect > it to be a instance method. > > Can someone explain to my why this is ? > > Roelof > > > -- -- Best regards, Dennis Schetinin