Adam Shelly
8/15/2008 6:19:00 PM
On 8/15/08, Emmanuel Oga <oga_emmanuel_oga@yahoo.com.ar> wrote:
> describe OddRecognizer do
> before :each do
> @recognizer = OddRecognizer.new
> end
>
> it "should recognize 2" do
> @recognizer.knows?(2).should be_true
> end
>
> it "should not recognize 3" do
> @recognizer.knows?(3).should be_false
> end
> end
>
Maybe I'm dense, but if the recognizer knows 2 but not 3 ... doesn't
that make it an EvenRecognizer?
I know this doesn't effect the fundamental problem, but the examples
might be easier to understand if the names were consistent.