POV-Ray : Newsgroups : povray.off-topic : Unit tests : Re: Unit tests Server Time
4 Sep 2024 09:17:40 EDT (-0400)
  Re: Unit tests  
From: Orchid XP v8
Date: 3 Jun 2010 16:21:00
Message: <4c080eac$1@news.povray.org>
Orchid XP v8 wrote:

> Whilst Haskell does have an assert() function, it seems to be more 
> popular to use QuickCheck.

Of course, the *other* thing that's popular is constructing software in 
such a way that it cannot malfunction in the first place. (E.g., if 
negative numbers aren't allowed, use unsigned integers. Now you don't 
have to check whether the input is negative, because it can never *be* 
negative.) Obviously, there are limits to how well this approach works...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.