On Monday, March 14, 2011 9:40:41 AM UTC-7, Snark wrote:
>
> Le 14/03/2011 14:12, David Kirkby a �crit :
>
> Are doctests pure string checks? Can't they allow things like "(result - 
> expected) < 0.0000001" ?
>

Yes and yes.  You can certainly have a test like

  sage: abs(x-y) < 0.0001
  True

and it will compute "abs(x-y) < 0.0001", get a string (either "True" or 
"False") and compare it to the expected result ("True").

-- 
John


-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to