Re: [QUIZ][SOLUTION] Kalah (#58)



On Monday 12 December 2005 10:36 pm, James Edward Gray II wrote:
> On Dec 12, 2005, at 7:36 PM, Steve Litt wrote:
> > On Monday 12 December 2005 05:24 pm, Adam Shelly wrote:
> >> Of course I introduced an error while cleaning up my code:
> >> That will teach me to skip unit tests...
> >
> > Could you please tell me more about the use of test units?
>
> If you're looking for a definition, try Wikipedia:
>
> http://en.wikipedia.org/wiki/Unit_testing

Ahhhh, I've always called those things "test jigs". Thanks.
>
> If you are curious about Ruby's Unit Test library, it is documented
> here:
>
> http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/index.html

I'm gonna actually have to see some real code with the Ruby unit test. The
preceding URL makes it look harder and more cumbersome than just writing a
subroutine to exercise your new class.

Thanks

SteveT

Steve Litt
http://www.troubleshooters.com
slitt@xxxxxxxxxxxxxxxxxxx


.



Relevant Pages

  • Re: Could someone please read this?
    ... I think what the OP actually needed was encouragement to keep writing; ... you hopefully won't ever need to rewrite the whole thing. ... I was referring to exercise. ... I gave good advice. ...
    (rec.arts.sf.composition)
  • Re: recurse subdirectories without using File::Find
    ... Why are you ignoring a known non-buggy solution in favor of ... You start by writing better code, and asking Perl for help whenever you ... Why are you calling the subroutine with the & on front? ...
    (perl.beginners)
  • Re: writing drivers using C++
    ... You are trying to sidestep the issue by writing about something ... coding against an interface - when the implementation starts mattering to ... Every subroutine invokation has to be coded manually, ...
    (comp.os.linux.development.system)
  • Re: [semi CRIT] (long) Re: Metaphor and simile
    ... local writing group, who had some criticisms but were suitably impressed ... but try to put them into practice. ... doesn't get into the exercise. ... It ends up in the POV of the merchant, ...
    (rec.arts.sf.composition)
  • Cumbersome Solution
    ... I ran into a small issue and I found a solution however it is cumbersome to use. ... I would like to create one subroutine for all my textboxes and not one for each textbox, given the sample subroutine below, how can I add the textbox name into this subroutine? ... Private Sub SetText ...
    (microsoft.public.dotnet.languages.vb)