For geometry.st, the problem is that sqrt is computed with a slightly different precision on x86_64, apparently. I can fix it by using a Pythagorean triple (i.e. making sure the sqrt is integer). It's not a big deal, I guess you can patch out the failing test (both the .st and .ok files); Thomas, you'll probably have the same problem on Debian.
Here's a patch. Paolo
* looking for [EMAIL PROTECTED]/smalltalk--stable--2.3--patch-54 to compare with * comparing to [EMAIL PROTECTED]/smalltalk--stable--2.3--patch-54 M tests/geometry.ok M tests/geometry.st * modified files --- orig/tests/geometry.ok +++ mod/tests/geometry.ok @@ -36,10 +36,10 @@ Execution begins... returned value is Point new "<0>" Execution begins... -'A dist: B = '136.0147050873544 +'A dist: B = '104.0 'C dotProduct: D = '20000 'C grid: D = '[EMAIL PROTECTED] -'C normal = '[EMAIL PROTECTED] +'E normal * 5 = '[EMAIL PROTECTED] 'C truncatedGrid: D = '[EMAIL PROTECTED] '[EMAIL PROTECTED] transpose = '[EMAIL PROTECTED] returned value is Point new "<0>" --- orig/tests/geometry.st +++ mod/tests/geometry.st @@ -112,19 +112,20 @@ myAreasOutside: a "point functions" -| A B C D | +| A B C D E | A := [EMAIL PROTECTED] - B := [EMAIL PROTECTED] + B := [EMAIL PROTECTED] C := [EMAIL PROTECTED] D := [EMAIL PROTECTED] + E := [EMAIL PROTECTED] 'A dist: B = ' print. (A dist: B) printNl. 'C dotProduct: D = ' print. (C dotProduct: D) printNl. 'C grid: D = ' print. (C grid: D) printNl. - 'C normal = ' print. - (C normal) printNl. + 'E normal * 5 = ' print. + (E normal * 5) rounded printNl. 'C truncatedGrid: D = ' print. (C truncatedGrid: D) printNl. '[EMAIL PROTECTED] transpose = ' print.
_______________________________________________ help-smalltalk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-smalltalk
