[Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Roelof Wobben
Hello, On the first part I have to make a class named BlankCell which is a subclass of TestCase. So far no problem. But when you are on the MirrorCell part BlankCell must be a subclass of Cell. But then the tests will fail because should: cannot be found. The manual says nothing about

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Camille Teruel
On 2 avr. 2014, at 13:21, Roelof Wobben r.wob...@home.nl wrote: Hello, On the first part I have to make a class named BlankCell which is a subclass of TestCase. So far no problem. But when you are on the MirrorCell part BlankCell must be a subclass of Cell. But then the tests will fail

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Nicolai Hess
2014-04-02 13:21 GMT+02:00 Roelof Wobben r.wob...@home.nl: Hello, On the first part I have to make a class named BlankCell which is a subclass of TestCase. So far no problem. No, firstly, all cells are just subclasses of Object ( http://squeak.preeminent.org/tut2007/html/015.html). And in

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Mark Rizun
Hi, You probably misunderstood the task. On the first part I have to make a class named BlankCell which is a subclass of TestCase. You had to create the class *BlankCellTestCase* (not BlankCell) which is a subclass of *TestCase*. BlankCell and BlankCellTestCase are two different classes.

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Roelof Wobben
Camille Teruel schreef op 2-4-2014 13:40: On 2 avr. 2014, at 13:21, Roelof Wobben r.wob...@home.nl wrote: Hello, On the first part I have to make a class named BlankCell which is a

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Roelof Wobben
Mark Rizun schreef op 2-4-2014 13:51: Hi, You probably misunderstood the task. On the first part I have to make a class named BlankCell which is a

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Mark Rizun
And only on this method the test fail on should: testCellOnState | cell | cell := BlankCell new. cell should: [ cell isOff ]. cell shouldnt: [ cell isOn ]. Yes it does, inasmuch on the bottom of this page ( http://squeak.preeminent.org/tut2007/html/017.html ) both

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Roelof Wobben
Mark Rizun schreef op 2-4-2014 14:22: And only on this method the test fail on should: testCellOnState | cell | cell := BlankCell new.

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Mark Rizun
Does this test fails to assert something or it throws you some error? 2014-04-02 15:27 GMT+03:00 Roelof Wobben r.wob...@home.nl: Mark Rizun schreef op 2-4-2014 14:22: And only on this method the test fail on should: testCellOnState | cell | cell := BlankCell new.

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Roelof Wobben
Mark Rizun schreef op 2-4-2014 14:58: Does this test fails to assert something or it throws you some error? Like I said earlier it fails with this message: MessageNotUnderstood: BlankCell should. Which I find wierd because I use should: also on the other test methods off BlankCell and

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Mark Rizun
Could you give me the code of test that fails? 2014-04-02 16:05 GMT+03:00 Roelof Wobben r.wob...@home.nl: Mark Rizun schreef op 2-4-2014 14:58: Does this test fails to assert something or it throws you some error? Like I said earlier it fails with this message: MessageNotUnderstood:

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Roelof Wobben
Mark Rizun schreef op 2-4-2014 15:07: Could you give me the code of test that fails? I can but I did already. The code is : testCellOnState | cell | cell := BlankCell new. cell should: [ cell isOff ]. cell shouldnt: [ cell isOn ]. And this is a code which

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Mark Rizun
The mistake is simple. You have to write as follows (just replace cell for self in two lines before should and shouldnt): testCellOnState | cell | cell := BlankCell new. self should: [ cell isOff ]. self shouldnt: [ cell isOn ]. 2014-04-02 16:12 GMT+03:00 Roelof Wobben

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Roelof Wobben
Mark Rizun schreef op 2-4-2014 15:16: The mistake is simple. You have to write as follows (just replace cell for self in two lines before should and shouldnt): testCellOnState | cell |

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Mark Rizun
That is really wierd:) 2014-04-02 17:17 GMT+03:00 Roelof Wobben r.wob...@home.nl: Mark Rizun schreef op 2-4-2014 15:16: The mistake is simple. You have to write as follows (just replace cell for self in two lines before should and shouldnt): testCellOnState | cell | cell

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Camille Teruel
On 2 avr. 2014, at 16:27, Mark Rizun mri...@gmail.com wrote: That is really wierd:) 2014-04-02 17:17 GMT+03:00 Roelof Wobben r.wob...@home.nl: Mark Rizun schreef op 2-4-2014 15:16: The mistake is simple. You have to write as follows (just replace cell for self in two lines before