[Tutor] unittests, testing a type
Todd Matsumoto
tmatsumoto at gmx.net
Tue Jul 14 15:41:27 CEST 2009
Hi,
Does anyone know how to do a unittest assert for a type?
So If you have a program returning a Decimal, lets say Decimal("1"), and you want to make sure that what is returned is a Decimal object.
At first I thought of importing Decimal and making my own Decimal("1") and doing an assertEquals, but this implies I know what the return type is before getting it.
Cheers,
T
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
More information about the Tutor
mailing list