Closed oscbyspro closed 3 weeks ago
I wrote some more comparison tests and found this bad negative-versus-infinite behavior:
Test().comparison(IXL(-1), UXL(~0), -1 as Signum) // OK Test().comparison(IXL(-1), UXL(~1), -1 as Signum) // :( Test().comparison(IXL(-1), UXL(~2), -1 as Signum) // :( Test().comparison(IXL(-1), UXL(~3), -1 as Signum) // :( Test().comparison(IXL(-2), UXL(~0), -1 as Signum) // OK Test().comparison(IXL(-2), UXL(~1), -1 as Signum) // OK Test().comparison(IXL(-2), UXL(~2), -1 as Signum) // :( Test().comparison(IXL(-2), UXL(~3), -1 as Signum) // :(
It turns out that I had placed the negative vs infinite appendix comparison after the body comparison. Sigh.
I wrote some more comparison tests and found this bad negative-versus-infinite behavior: