Laser game tutorial - test runner - page 018.html

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Laser game tutorial - test runner - page 018.html

gruntfuttuck
This post was updated on .
OK in the Test Runner  I see  the  Laser-Game-Tests in the left panel.  When  I click on the failed  tests  method in stead of getting  a  debugger  I  get  a  Syntax Error popup. Which says in the top pane: 'Object Kernel-Objects Block' and in the lower pane I get:

Block stringIndexNothing more
expected ->]].
    ^ true

Where may I have done something wrong? How should I proceed to find the root of this problem.

Fantastic tutorial, I'm really enjoying it. I can't wait to continue.

Grunt
Reply | Threaded
Open this post in threaded view
|

Re: Laser game tutorial - test runner - page 018.html

gruntfuttuck
Sorry forgot to add the URL for the tutorial: http://squeak.preeminent.org/tut2007/html/


gruntfuttuck wrote
OK in the Test Runner  I see  the  Laser-Game-Tests in the left panel.  When  I click on the failed  tests  method in stead of getting  a  debugger  I  get  a  Syntax Error popup. Which says in the top pain: 'Object Kernel-Objects Block' and in the lower pain I get:

Block stringIndexNothing more
expected ->]].
    ^ true

Where may I have done something wrong? How should I proceed to find the root of this problem.

Fantastic tutorial, I'm really enjoying it. I can't wait to continue.

Grunt
Reply | Threaded
Open this post in threaded view
|

Re[2]: Laser game tutorial - test runner - page 018.html

Herbert König
Hello Grunt,


g> Sorry for got to add the URL for the tutorial:
g> http://squeak.preeminent.org/tut2007/html/

please give us the url of the exact page, many pages say "now run the
tests".



Cheers,

Herbert                            mailto:[hidden email]

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Re[2]: Laser game tutorial - test runner - page 018.html

gruntfuttuck
it's http://squeak.preeminent.org/tut2007/html/018.html

Thanks


Herbert König wrote
Hello Grunt,


g> Sorry for got to add the URL for the tutorial:
g> http://squeak.preeminent.org/tut2007/html/

please give us the url of the exact page, many pages say "now run the
tests".



Cheers,

Herbert                            mailto:herbertkoenig@gmx.net

_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re[2]: Re[2]: Laser game tutorial - test runner - page 018.html

Herbert König
Hello Grunt,


g> it's http://squeak.preeminent.org/tut2007/html/018.html

Just a guess:
you might have forgotten the periods at the end of a line in the
tests.

If you want to send a picture to the list:
Easiest is  in the read halo button use export, then png file, they
are the smallest. The list has a 100k limit for each post. At least
Squeak-dev has so I guess this is true here too.

Oh in case you don't know yet: you get a halo by middle (or right,
depending on your settings) mouse click on any Object on screen,
including windows. On a one button mouse try alt click, control click
or whatever modifier keys your keyboard has.

Do you get failures in the TestRunner or Errors?

A failure is if you the test returns the wrong result, an error is a
bug in the test or in the tested method.

So maybe you can send us a picture of what the TestRunner says and one
of the syntax error popup.

Back tomorrow

Cheers,

Herbert                            mailto:[hidden email]

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Laser game tutorial - test runner - page 018.html

Tapple Gao
In reply to this post by gruntfuttuck
On Tue, Jul 17, 2007 at 10:04:12AM -0700, gruntfuttuck wrote:

>
> OK in the Test Runner  I see  the  Laser-Game-Tests in the left panel.  When
> I click on the failed  tests  method in stead of getting  a  debugger  I
> get  a  Syntax Error popup. Which says in the top pain: 'Object
> Kernel-Objects Block' and in the lower pain I get:
>
> Block stringIndexNothing more
> expected ->]].
>     ^ true
>
> Where may I have done something wrong? How should I proceed to find the root
> of this problem.

I have no idea how this happened, but I also don't know what
method that error message is refering to, as there is no class
named Block in my image (3.9-final-7067).

I would try fixing it to say

Block stringIndex
    ^ true

since that is probably what is meant

--
Matthew Fulmer -- http://mtfulmer.wordpress.com/
Help improve Squeak Documentation: http://wiki.squeak.org/squeak/808
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Re[2]: Re[2]: Laser game tutorial - test runner - page 018.html

gruntfuttuck
In reply to this post by Herbert König
Hello Thanks for all the help! I have looked at the source code I have entered in the tutorial and it looks OK but being dyslexic I could have made a mistake. The squeak image I'm using is 3.9-final-7067 Here is a screen shot: snapshot1.png
Reply | Threaded
Open this post in threaded view
|

Re[2]: Laser game tutorial - test runner - page 018.html

Herbert König
Hello Grunt,


g> HelloThanks for all the help!I have looked at the source code I
you're welcome.

g> 3.9-final-7067Here is a screen shot:snapshot1.png

I guess the simplest thing is, if you file out the three categories,
attach them to a mail and post them here.

As I don't know how recently you started with Squeak or Smalltalk,
fileOut is found in the context menu.

BTW I would have preferred it, if the tutorial had things to copy from
the webpage, instead of just pictures. But I guess the learning effect
is better, if one can make all mistakes one is able to make. Maybe
that's why Steve put pictures instead of html one can copy.



Cheers

Herbert                            mailto:[hidden email]

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Laser game tutorial - test runner - page 018.html

gruntfuttuck
In reply to this post by Tapple Gao

I filed out and out of curiosity I filed in to a new image and now it works! So I must have had a wonky image.

BTW the tutorial does go on to text examples rather than images later on. The author states on page one:

Frequently the pages of the tutorial will be filled with screen-shots of browser windows. Although this may tend to be distracting for some readers, whenever I'm introducing something for the first few times the class hierarchy browser is shown so that the student can examine carefully and compare it to what they are doing in case there are mistakes. After progressing through a lot more of the tutorial it's assumed this convention is no longer necessary and descriptions with code samples are given instead.

Now I can continue with the fun! Thanks again!

Grunt