Jacob S. wrote:
I've tried doc string testing with doctest, but I find I can do better just
using the interactive interpreter.
Do better? With doctest you protect yourself from future bugs. How
can you do better just using the interpreter?
Mr. Johnson has already pointed out how to make doctes
Jacob S. wrote:
Ahh... I found that out today. A little more rest, I guess.
As for unit testing, I've seen it used, but I've never implemented it.
I've tried doc string testing with doctest, but I find I can do better just
using the interactive interpreter.
I think one way to use doctest is to cop
Ahh... I found that out today. A little more rest, I guess.
As for unit testing, I've seen it used, but I've never implemented it.
I've tried doc string testing with doctest, but I find I can do better just
using the interactive interpreter. (I don't know why. Impatience I guess.
Maybe I just want
Jacob S. wrote:
Okay, not a very descriptive subject, but here goes...
This is the code
###
from decimal import Decimal as D
Oh come on!
"""Everything is first converted to meters, and then converted to the unit
you want to extend usage.
dic[unit] = (unitto