use super::*;

#[test]
fn _0001() {
  let expected = (
    // expected information item name
    None,
    // expected output label
    None,
    // expected hit policy
    HitPolicy::Collect(BuiltinAggregator::List),
    // expected aggregation
    BuiltinAggregator::List.into(),
    // expected preferred orientation
    DecisionTableOrientation::RulesAsRows,
    // expected input clauses
    t_input_clauses(&[(r#"Day"#, r#"0, 1, 2, 3, 4, 5, 6"#.into())]),
    // expected output clauses
    t_output_clauses(&[(None, r#""Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday""#.into(), None)]),
    // expected annotation clauses
    t_annotation_clauses(&[r#"Description"#, r#"Reference"#]),
    // expected rules
    t_rules(&[
      (&[r#"1"#], &[r#""Monday""#], &["Desc 1", "Ref 1"]),
      (&[r#"2"#], &[r#""Tuesday""#], &["Desc 2", "Ref 2"]),
      (&[r#"3"#], &[r#""Wednesday""#], &["Desc 3", "Ref 3"]),
      (&[r#"4"#], &[r#""Thursday""#], &["Desc 4", "Ref 4"]),
      (&[r#"5"#], &[r#""Friday""#], &["Desc 5", "Ref 5"]),
      (&[r#"6"#], &[r#""Saturday""#], &["Desc 6", "Ref 6"]),
      (&[r#"0"#], &[r#""Sunday""#], &["Desc 7", "Ref 7"]),
    ]),
  );
  t_eq(&expected, from_unicode(H_001112, false).unwrap());
  t_eq(&expected, from_markdown(H_001112, false).unwrap());
}
