|
From: | Gregory Marton |
Subject: | Re: A passing test case |
Date: | Sat, 26 Jan 2008 14:09:46 -0500 (EST) |
Gregory Marton <address@hidden> writes:The differences are not significant. I guess I wanted to make clear in the test case that this isn't something to do with literal rationals, and I didn't want the test case to be printing things to the console.OK, thanks for explaining that. I assume that this test relates to the following NEWS item (for 1.8.2): ** Fractions were not `equal?' if stored in unreduced form. (A subtle problem, since printing a value reduced it, making it work.)
Yes.
But doesn't that mean that your test needs to use an unreduced fraction, e.g. 2/4 instead of 1/2 ?
Now that I look more carefully at fractions.test, my assumption that a test case was already added for that case seems to be incorrect. I'm happy to try to add these tests as well.
(Or does Guile have a strange idea of reduction which means that 1/2 is not already a reduced form?)
This appears to me to be the case for guile 1.8.1 at least. I assume the two bugs, if they were separate, were fixed together. I observed this behavior in guile 1.8.1, but not 1.8.3.
Best, Grem -- ------ __@ Gregory A. Marton http://csail.mit.edu/~gremio/ --- _`\<,_ . -- (*)/ (*) Help! My inertia is gaining momentum! ~~~~~~~~~~~~~~~~-~~~~~~~~_~~~_~~~~~v~~~~^^^^~~~~~--~~~~~~~~~~~~~~~++~~~~~~~
[Prev in Thread] | Current Thread | [Next in Thread] |