i'm thinking the same way Eric do. On Wed, Feb 27, 2008 at 11:18 PM, Eric Brunson <[EMAIL PROTECTED]> wrote:
> Alan Gauld wrote: > > "bob gailer" <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote > > > > i don't really understand that. you are trying to say that the > tests > from the online judge are not "exactly good" ? > > > Yes that's exactly what I'm saying. At least one test case has a > non-decimal character. > > > Which actually makes it a very good test since thats > exactly the kind of thing you should be testing for :-) > A test suite that only checks valid data is a bad test. > > > > > That's fine if writing a test suite for production software, but from the > problem description: "There is a string containing only decimal digit > characters." > > Testing for valid input seems to be outside the scope of the problem > definition. :-) > > > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > >
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor