A new version of KernelTests was added to project The Inbox: http://source.squeak.org/inbox/KernelTests-dtl.449.mcz
==================== Summary ====================
Name: KernelTests-dtl.449 Author: dtl Time: 13 January 2024, 10:25:41.643571 pm UUID: db371749-54f3-4972-8899-65b439f89d10 Ancestors: KernelTests-jar.448
Test to document a mixed arithmetic issue, reference Kernel-mt.1550 and Kernel-mt.1551
=============== Diff against KernelTests-jar.448 ===============
Item was added: + ----- Method: FloatTest>>testSmallIntegerDivide (in category 'tests - arithmetic') ----- + testSmallIntegerDivide + "mixed integer and float operation should not introduce loss of precision" + + self should: [Compiler evaluate: '(3 / 5.0) = (3.0 / 5.0)'] + !
Discussion at https://lists.squeakfoundation.org/archives/list/squeak-dev@lists.squeakfoun...
FloatTest>>testSmallIntegerDivide is sufficient to reproduce the issue on 64-bit Spur with immediate floats. With Kernel-mt.1550 loaded the test will fail, and with Kernel-mt.1551 the test passes again.
However, the test does not catch the issue on a 32bit V3 image, and I have not tried it on 32-bit Spur.
Dave
On 2024-01-14 03:25, commits@source.squeak.org wrote:
A new version of KernelTests was added to project The Inbox: http://source.squeak.org/inbox/KernelTests-dtl.449.mcz
==================== Summary ====================
Name: KernelTests-dtl.449 Author: dtl Time: 13 January 2024, 10:25:41.643571 pm UUID: db371749-54f3-4972-8899-65b439f89d10 Ancestors: KernelTests-jar.448
Test to document a mixed arithmetic issue, reference Kernel-mt.1550 and Kernel-mt.1551
=============== Diff against KernelTests-jar.448 ===============
Item was added:
- ----- Method: FloatTest>>testSmallIntegerDivide (in category 'tests -
arithmetic') -----
- testSmallIntegerDivide
"mixed integer and float operation should not introduce loss of
precision"
self should: [Compiler evaluate: '(3 / 5.0) = (3.0 / 5.0)']
!
Hi Dave --
Thanks! You could put it directly into Trunk, I think. :-)
Best, Marcel
Am 14.01.2024 04:26:04 schrieb commits@source.squeak.org commits@source.squeak.org:
A new version of KernelTests was added to project The Inbox: http://source.squeak.org/inbox/KernelTests-dtl.449.mcz
==================== Summary ====================
Name: KernelTests-dtl.449 Author: dtl Time: 13 January 2024, 10:25:41.643571 pm UUID: db371749-54f3-4972-8899-65b439f89d10 Ancestors: KernelTests-jar.448
Test to document a mixed arithmetic issue, reference Kernel-mt.1550 and Kernel-mt.1551
=============== Diff against KernelTests-jar.448 ===============
Item was added: + ----- Method: FloatTest>>testSmallIntegerDivide (in category 'tests - arithmetic') ----- + testSmallIntegerDivide + "mixed integer and float operation should not introduce loss of precision" + + self should: [Compiler evaluate: '(3 / 5.0) = (3.0 / 5.0)'] + !
I added the test to trunk directly, and moved KernelTests-dtl.449 to the treated inbox.
On 2024-01-15 10:12, Taeumel, Marcel via Squeak-dev wrote:
Hi Dave --
Thanks! You could put it directly into Trunk, I think. :-)
Best, Marcel
Am 14.01.2024 04:26:04 schrieb commits@source.squeak.org commits@source.squeak.org:
A new version of KernelTests was added to project The Inbox: http://source.squeak.org/inbox/KernelTests-dtl.449.mcz
==================== Summary ====================
Name: KernelTests-dtl.449 Author: dtl Time: 13 January 2024, 10:25:41.643571 pm UUID: db371749-54f3-4972-8899-65b439f89d10 Ancestors: KernelTests-jar.448
Test to document a mixed arithmetic issue, reference Kernel-mt.1550 and Kernel-mt.1551
=============== Diff against KernelTests-jar.448 ===============
Item was added:
- ----- Method: FloatTest>>testSmallIntegerDivide (in category 'tests
- arithmetic') -----
- testSmallIntegerDivide
- "mixed integer and float operation should not introduce loss of
precision"
- self should: [Compiler evaluate: '(3 / 5.0) = (3.0 / 5.0)']
- !
squeak-dev@lists.squeakfoundation.org