Changeset cefc59f for tests/manipulatorsOutput3.cfa
- Timestamp:
- Apr 24, 2020, 12:11:44 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/manipulatorsOutput3.cfa
r93ace83 rcefc59f 19 19 sout | nl; 20 20 21 printf( "%#.10o\n", 0123 ); 22 sout | wd( 1,10, oct(0123) ); 21 23 sout | oct(x); 22 24 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 30 46 int128 y = 123456789; 31 sout | left(wd( 45, 49, upcase(oct(y)) )) | 'X';47 sout | left(wd( 45, 49, oct(y) )) | 'X'; 32 48 sout | nl; 33 49
Note: See TracChangeset
for help on using the changeset viewer.