Alan Gauld wrote:
"bob gailer" <[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  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to