Constant dmntk_examples::EX_0032

source ·
pub const EX_0032: &str = r#"
  ┌─────────────────────────────────────┐
  │ Order options                       │
  ├───┬───────────┬───────╥─────────────┴───────╥─────────────┬───────────┐
  │ U │           │       ║    Order options    ║             │           │
  │   │ Customer  │ Order ╟──────────┬──────────╢ Description │ Reference │
  │   │   type    │ size  ║ Discount │ Priority ║             │           │
  │   ├───────────┼───────╫──────────┼──────────╫─────────────┼───────────┤
  │   │"Business",│  <10, ║   0.10,  │"Normal", ║             │           │
  │   │"Private"  │ >=10  ║   0.15,  │ "High",  ║             │           │
  │   │           │       ║   0.05   │ "Low"    ║             │           │
  ╞═══╪═══════════╪═══════╬══════════╪══════════╬═════════════╪═══════════╡
  │ 1 │"Business" │  <10  ║   0.10   │ "Normal" ║ Small order │   Ref 1   │
  ├───┼───────────┼───────╫──────────┼──────────╫─────────────┼───────────┤
  │ 2 │"Business" │ >=10  ║   0.15   │ "High"   ║ Large order │   Ref 2   │
  ├───┼───────────┼───────╫──────────┼──────────╫─────────────┼───────────┤
  │ 3 │"Private"  │   -   ║   0.05   │ "Low"    ║ All orders  │   Ref 3   │
  └───┴───────────┴───────╨──────────┴──────────╨─────────────┴───────────┘
% { Customer type: "Business",   Order size:  -3.23 }, { "Discount": 0.10, "Priority": "Normal" }
% { Customer type: "Business",   Order size:   9.00 }, { "Discount": 0.10, "Priority": "Normal" }
% { Customer type: "Business",   Order size:  10.00 }, { "Discount": 0.15, "Priority": "High" }
% { Customer type: "Business",   Order size: 120.00 }, { "Discount": 0.15, "Priority": "High" }
% { Customer type: "Private",    Order size:  -2.34 }, { "Discount": 0.05, "Priority": "Low" }
% { Customer type: "Private",    Order size:  10.00 }, { "Discount": 0.05, "Priority": "Low" }
% { Customer type: "Private",    Order size: 101.00 }, { "Discount": 0.05, "Priority": "Low" }
% { Customer type: "Government", Order size: 300.01 }, null
"#;
Expand description

Horizontal decision table,

          ORIENTATION: horizontal
INFORMATION ITEM NAME: yes
         OUTPUT-LABEL: yes
  INPUT-OUTPUT-VALUES: yes
               OUTPUT: multiple
          ANNOTATIONS: yes