Changes in tests/io2.cfa [ac1ae2c6:200fcb3]
- File:
-
- 1 edited
-
tests/io2.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/io2.cfa
rac1ae2c6 r200fcb3 10 10 // Created On : Wed Mar 2 16:56:02 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Dec 12 16:19:15201813 // Update Count : 1 1012 // Last Modified On : Tue Dec 11 21:51:52 2018 13 // Update Count : 109 14 14 // 15 15 … … 44 44 45 45 sout | "input bacis types"; 46 in | b ;// boolean47 in | c | sc | usc;// character48 in | si | usi | i | ui | li | uli | lli | ulli;// integral49 in | f | d | ld;// floating point50 in | fc | dc | ldc;// floating-point complex51 in| cstr( s1 ) | cstr( s2, size ); // C string, length unchecked and checked46 in | b // boolean 47 | c | sc | usc // character 48 | si | usi | i | ui | li | uli | lli | ulli // integral 49 | f | d | ld // floating point 50 | fc | dc | ldc // floating-point complex 51 | cstr( s1 ) | cstr( s2, size ); // C string, length unchecked and checked 52 52 sout | nl; 53 53 54 54 sout | "output basic types"; 55 sout | b ;// boolean56 sout | c | ' ' | sc | ' ' | usc;// character57 sout | si | usi | i | ui | li | uli | lli | ulli;// integral58 sout | f | d | ld;// floating point59 sout| fc | dc | ldc; // complex55 sout | b | nl // boolean 56 | c | ' ' | sc | ' ' | usc | nl // character 57 | si | usi | i | ui | li | uli | lli | ulli | nl // integral 58 | f | d | ld | nl // floating point 59 | fc | dc | ldc; // complex 60 60 sout | nl; 61 61 … … 66 66 67 67 sout | "toggle separator"; 68 sout | f | "" | d | "" | ld ;// floating point without separator69 sout | sepDisable | fc | dc | ldc;// complex without separator70 sout | fc | sepOn | dc | ldc;// local separator add71 sout | sepEnable | fc | dc | ldc;// complex with separator72 sout | fc | sepOff | dc | ldc;// local separator removal73 sout | s1 | sepOff | s2;// local separator removal74 sout| s1 | "" | s2; // local separator removal68 sout | f | "" | d | "" | ld | nl // floating point without separator 69 | sepDisable | fc | dc | ldc | nl // complex without separator 70 | fc | sepOn | dc | ldc | nl // local separator add 71 | sepEnable | fc | dc | ldc | nl // complex with separator 72 | fc | sepOff | dc | ldc | nl // local separator removal 73 | s1 | sepOff | s2 | nl // local separator removal 74 | s1 | "" | s2; // local separator removal 75 75 sout | nl; 76 76 … … 79 79 sepSet( sout, ", $" ); // change separator, maximum of 15 characters 80 80 sout | " to \"" | sep | "\""; 81 sout | f | d | ld ;82 sout | fc | dc | ldc;83 sout | s1 | s2;84 sout| t1 | t2; // print tuple81 sout | f | d | ld | nl 82 | fc | dc | ldc | nl 83 | s1 | s2 | nl 84 | t1 | t2; // print tuple 85 85 sout | nl; 86 86 sout | "from \"" | sep | "\" " | nonl; 87 87 sepSet( sout, " " ); // restore separator 88 88 sout | "to \"" | sep | "\""; 89 sout | f | d | ld ;90 sout | fc | dc | ldc;91 sout | s1 | s2;92 sout| t1 | t2; // print tuple89 sout | f | d | ld | nl 90 | fc | dc | ldc | nl 91 | s1 | s2 | nl 92 | t1 | t2; // print tuple 93 93 sout | nl; 94 94
Note:
See TracChangeset
for help on using the changeset viewer.