Ignore:
Timestamp:
Jul 24, 2003, 4:42:16 PM (18 years ago)
Author:
luba
Message:
  • tests for GCD and Div-Rem functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/samples/Arithm/div_rem.rf

    r593 r1056  
    22
    33Main =
    4   {
    5     <PrintLN <Div-Rem 3 2>>;
     4  { 
     5    <PrintLN <Div-Rem -22 11>>,
     6    <PrintLN <Div-Rem -2147483647 -2147483647>>,
     7    <PrintLN <Div-Rem 2147483647 -2147483647>>,
     8    <PrintLN <Div-Rem -2147483647 2147483647>>,
     9    <PrintLN <Div-Rem 2147483647 2147483647>>,
     10
     11    <PrintLN <Div-Rem 2147483648 2>>,
     12    <PrintLN <Div-Rem 2147483648 2222222>>,
     13    <PrintLN <Div-Rem 22345 -2147483648>>,
     14    <PrintLN <Div-Rem -2147483649 2147483648>>,
     15    <PrintLN <Div-Rem -2147483648123456789078654321 -2147483648>>,
     16
     17    <PrintLN <Div-Rem -23 -11>>,
     18    <PrintLN <Div-Rem -23 -11111111111>>,
     19    <PrintLN <Div-Rem -2147483649 -2147483647>>,
     20    <PrintLN <Div-Rem 2147483649 -2147483647>>,
     21    <PrintLN <Div-Rem -2147483649 2147483647>>,
     22    <PrintLN <Div-Rem 2147483649 2147483647>>,
     23
     24    <PrintLN <Div-Rem 2147483648 2>>,
     25    <PrintLN <Div-Rem 2147483648 2222222>>,
     26    <PrintLN <Div-Rem 22345 -2147483648>>,
     27    <PrintLN <Div-Rem -2147483649 2147483648>>,
     28    <PrintLN <Div-Rem -21474836481234567890786543 -2>>;
     29
    630  };
    731
Note: See TracChangeset for help on using the changeset viewer.