Ignore:
Timestamp:
Apr 24, 2020, 12:11:44 PM (18 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
13099a8b
Parents:
93ace83 (diff), 2a01c9b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/manipulatorsOutput3.cfa

    r93ace83 rcefc59f  
    1919    sout | nl;
    2020
     21    printf( "%#.10o\n", 0123 );
     22    sout | wd( 1,10, oct(0123) );
    2123    sout | oct(x);
    2224    sout | nobase(oct(x));
    23     sout | wd( 45, upcase(oct(123)) );
    24     sout | wd( 45,40, upcase(oct(123)) );
    25     sout | wd( 40,45, upcase(oct(123)) );
    26     sout | wd( 45, upcase(oct(x)) );
    27     sout | wd( 45,40, upcase(oct(x)) );
    28     sout | wd( 40,45, upcase(oct(x)) );
    29     sout | left(wd( 45, upcase(oct(x)) )) | 'X';
     25    sout | wd( 45, oct(0123) );
     26    sout | wd( 45,40, oct(0123) );
     27    sout | wd( 40,45, oct(0123) );
     28    sout | wd( 45, oct(x) );
     29    sout | wd( 45,40, oct(x) );
     30    sout | wd( 40,45, oct(x) );
     31
     32    sout | left(wd( 45, oct(0123) )) | 'X';
     33    sout | left(wd( 45, oct(x) )) | 'X';
     34    sout | left(wd( 45,40, oct(0123) )) | 'X';
     35    sout | left(wd( 45,40, oct(x) )) | 'X';
     36    sout | left(wd( 40,45, oct(0123) )) | 'X';
     37    sout | left(wd( 40,45, oct(x) )) | 'X';
     38    printf( "%#-1.10oX\n", 0123 );
     39    sout | left(wd( 1,10, oct(0123) )) | 'X';
     40    printf( "%#-40.10oX\n", 0123 );
     41    sout | left(wd( 40,10, oct(0123) )) | 'X';
     42    sout | left(wd( 40,10, oct(x) )) | 'X';
     43    sout | left(wd( 10,40, oct(0123) )) | 'X';
     44    sout | left(wd( 10,40, oct(x) )) | 'X';
     45
    3046    int128 y = 123456789;
    31     sout | left(wd( 45, 49, upcase(oct(y)) )) | 'X';
     47    sout | left(wd( 45, 49, oct(y) )) | 'X';
    3248    sout | nl;
    3349
Note: See TracChangeset for help on using the changeset viewer.