[PATCH V3] New version of proc whole and dependencies

chris hermansen clhermansen@gmail.com
Wed Jul 15 00:03:01 GMT 2026


Excellent!  I have moved my git-fu from "total loser" to "loser", that's a
big milestone for me :-)

On Tue, Jul 14, 2026 at 2:32 PM Jose E. Marchesi <jemarch@gnu.org> wrote:
>
>
> Hi Chris.
>
> This is looking good! :)
>
> We will need some tests added to gcc/gcc/testsuite/algol68/execute, in
> files like whole-1.a68, whole-2.a68, ...
>
> For example:
>
>
> whole-1.a68
>
>
>  if bits_width = 32
>  then assert(whole(max_int,0) = "4294967296");
>       ...
>  elif bits_width = 64
>  then assert(whole(max_int,0) = "18446744073709551616");
>       ...
>  fi

Your numbers above are unsigned 32 and 64 bit.

Ok.  I will also test bits_width = 16 and bits_width = 8.

As well,  in each bits_width interval, I propose to test:

-max_int
-max_int - 1
0 (zero)
and 1000 random numbers in the range -max_int - 1 .. max_int
which I will pre-compute in "another programming language".

Of course the long long, long, short and short short versions as well
(for short short I will test 100 random numbers)

How does this sound?

-- 
Chris Hermansen · clhermansen "at" gmail "dot" com

C'est ma façon de parler.


More information about the Algol68 mailing list