[squeak-dev] Roassal3 tests: (BoxedFloat64 infinity) >= 1 -> false

Vanessa Freudenberg vanessa at codefrau.net
Thu Oct 22 20:06:55 UTC 2020


What does "BoxedFloat64 infinity print?

And what VM are you on? 32 or 64 bits?

FWIW, it works fine on this VM:

Open Smalltalk Cog[Spur] VM [CoInterpreterPrimitives
VMMaker.oscog-nice.2715] 64 bit
Mac OS X built on Mar  3 2020 08:28:30 GMT Compiler: 4.2.1 Compatible Apple
LLVM 8.1.0 (clang-802.0.42)
platform sources revision VM: 202003021730
https://github.com/OpenSmalltalk/opensmalltalk-vm.git Date: Mon Mar 2
18:30:55 2020 CommitHash: 6a0bc96 Plugins: 202003021730
https://github.com/OpenSmalltalk/opensmalltalk-vm.git
CoInterpreter VMMaker.oscog-nice.2715 uuid:
78e2f556-9829-42fe-963d-e19dfc43c0e9 Mar  3 2020
StackToRegisterMappingCogit VMMaker.oscog-eem.2719 uuid:
e40f3e94-3a54-411b-9613-5d19114ea131 Mar  3 2020

- Vanessa -

On Thu, Oct 22, 2020 at 7:51 AM gettimothy via Squeak-dev <
squeak-dev at lists.squeakfoundation.org> wrote:

> Hi folks,
>
> Version: Squeak6.0alphaUpdate: 20010
>
>
> Working through the Roassal3 tests
>
> in RSAbstractAnimation>>loops: aNumber
> *self assert: aNumber >= 1 description: 'The number of times to repeat
> this animation'.    <----test fails here.*
> loops := aNumber
>
> aNumber is Infinity (inspecting displays a Boxed Float)
>
> Poking around a bit...
>
> (BoxedFloat64 infinity) >= 1  -> false
>
>
> then....
>
> (BoxedFloat64 infinity) < 1 ->true
>
>
> Is this expected?
>
> If so, suggestions on how  I should I make the test reflect reality?
>
> thx in advance.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20201022/f62e8402/attachment.html>


More information about the Squeak-dev mailing list