On 2012-11-09 07:20, H. S. Teoh wrote:
Well, unittests are a runtime check, and they don't *guarantee*
anything. (One could, in theory, write a pathological pseudo-range that
passes basic unittests but fail to behave like a range in some obscure
corner case. Transient ranges would fall under that category, should we
decide not to admit them as valid ranges. :-))
But of course that's just splitting hairs.
But since we do have a language with static typing we can at least do
our best to try at catch as many errors as possible at compile time. We
don't want to end up as a dynamic language and testing for types in the
unit tests.
--
/Jacob Carlborg