From: Kingsley Date: 2003-10-12T17:09:09+09:00 Subject: Ruby TDD Hi When doing TDD if there is code that processes data, that comes from a user - e.g. logon information. Should my code contain tests to check that the information is in the correct format etc, or should I do those checks in my tests? If I do checks for valid data in my code - do I then need tests that check that the code is checking if the user information is of correct format etc. If I just put all those types of test in my tests only - It would mean that when someone runs the program - there are no checks in place to alert a user that they have used invalid user information. - Unless the user runs the tests before they run the program ! I'm still confused Thanks Kingsley