[Rest2web-develop] Changed all references to value "tests" into value "checks"...
Brought to you by:
mjfoord
From: Nicola L. <ni...@te...> - 2005-07-20 20:57:20
|
...including the main Validator method, and all code tests. Also moved the "import socket, struct" line inside both the dottedQuadToNum and numToDottedQuad functions, and added tests to both of them. Speaking of the latter function, one of the tests allowed me catch a bug in it. I've been using that code for *years* now, I'm still shocked. :-) Repeat after me: doctest, unittest, whatever, but test! ;-) -- Nicola Larosa - ni...@te... When I was growing up, my parents used to say to me, "Tom, finish your dinner - people in China are starving." But after sailing to the edges of the flat world for a year, I am now telling my own daughters, "Girls, finish your homework - people in China and India are starving for your jobs." -- Thomas L. Friedman, New York Times, April 2005 |