|
Test cases are now posted at: http://www.classes.cs.uchicago.edu/classes/archive/2002/fall/12500-1/Homework/Project/Abstractions/index.php 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: