News Test Cases 

Forum: Com Sci 12500, U Chicago, Autumn 2002, Discuss Classwork
Re: News Project Step #2, deadline Wednesday 13 November (Mike O'Donnell)
Date: 2002, Nov 13
From: Benedict Singer <singerb@uchicago.edu>

Test cases are now posted at: http://www.classes.cs.uchicago.edu/classes/archive/2002/fall/12500-1/Homework/Project/Abstractions/index.php

Feel free to suggest new ones - these ones all work correctly I believe

What these test: add, sub, mult, div, power (and abs_xreal->ratintvllist implicitly). I wrote them the way they are so that the xreals returned by the functions would get tested at varying degrees of precision - it would be no good to have 2 be inside the interval of sqrt_2^2 at one level of precision and not at another.

What these don't test: comporder (might be added later), the token-testers (simple to test yourself) abs_xreal->ratintvl (trivial in this implementation) the string function (you can choose the exact kind of string to output, hence my test would probably be useless). If some motivated person wants to post some comporder tests here, specifically ones highlighting the role of the precision in determining lt/gt vs. indistinguisable, I'll add them to the file.


to: "Test Cases"