Changes in / [a9ea758:47e18f3]


Ignore:
Location:
tests
Files:
2 added
4 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • tests/io1.cfa

    ra9ea758 r47e18f3  
    1010// Created On       : Wed Mar  2 16:56:02 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Feb 21 10:07:07 2021
    13 // Update Count     : 119
     12// Last Modified On : Mon Mar  4 21:42:47 2019
     13// Update Count     : 115
    1414//
    1515
     
    1717
    1818int main() {
    19         sout | nlOff;                                                                           // auto nl off
     19        int x = 3, y = 5, z = 7;
     20        sout | x * 3 | y + 1 | z << 2 | x == y | (x | y) | (x || y) | (x > z ? 1 : 2);
     21        sout | 0 | 1 | 2 | 3;
     22        sout | '0' | '1' | '2' | '3';
     23        sout | 0 | "" | 1 | "" | 2 | "" | 3;
     24        sout | nl;
    2025
     26        sout | nlOff;
    2127        sout | "opening delimiters" | nl;
    2228        sout | "x (" | 1;
     
    5561        sout | nl | nl;
    5662
    57         sout | nlOn;                                                                            // auto nl on
    58 
     63        sout | nlOn;
    5964        sout | "override opening/closing delimiters";
    6065        sout | "x ( " | 1 | " ) x" | 2 | " , x" | 3 | " :x: " | 4;
    6166        sout | nl;
    62 
    63         sout | "spacing";
    64         sout | 0 | 1 | 2 | 3;
    65         sout | '0' | '1' | '2' | '3';
    66         sout | 0 | "" | 1 | "" | 2 | "" | 3;
    67         sout | nl;
    68 
    69         sout | "expressions";
    70         int x = 3, y = 5, z = 7;
    71         sout | x * 3 | y + 1 | z << 2 | x == y | (x | y) | (x || y) | (x > z ? 1 : 2);
    7267}
    7368
Note: See TracChangeset for help on using the changeset viewer.