use crate::common::*;
#[test]
fn case_1() {
// init_logger();
let expr = "
";
test_ClearSpeak("sv", "ClearSpeak_MultiLineLabel", "Auto", expr, "f av x lika med; 3 fall, fall 1; minus 1 if x, är mindre än 0; fall 2; 0 if x, lika med 0; fall 3; 1 if x, är större än 0;");
}
#[test]
fn equation_auto() {
let expr = "
";
test_ClearSpeak("sv", "ClearSpeak_MultiLineLabel", "Auto", expr, "2 rader, rad 1; x plus y, lika med, 7; rad 2; 2 x plus 3 y, lika med, 17;");
}
#[test]
fn equation_case() {
let expr = "
";
test_ClearSpeak("sv", "ClearSpeak_MultiLineLabel", "Case", expr, "2 fall, fall 1; x plus y, lika med, 7; fall 2; 2 x plus 3 y, lika med, 17;");
}
#[test]
fn equation_constraint() {
let expr = "
";
test_ClearSpeak("sv", "ClearSpeak_MultiLineLabel", "Constraint", expr, "2 avgränsningar, avgränsning 1; x plus y, lika med, 7; avgränsning 2; 2 x plus 3 y, lika med, 17;");
}
#[test]
fn equation_equation() {
let expr = "
";
test_ClearSpeak("sv", "ClearSpeak_MultiLineLabel", "Equation", expr, "2 ekvationer, ekvation 1; x plus y, lika med, 7; ekvation 2; 2 x plus 3 y, lika med, 17;");
}
#[test]
fn equation_line() {
let expr = "
";
test_ClearSpeak("sv", "ClearSpeak_MultiLineLabel", "Line", expr, "2 rader, rad 1; x plus y, lika med, 7; rad 2; 2 x plus 3 y, lika med, 17;");
}
#[test]
fn equation_none() {
let expr = "
";
test_ClearSpeak("sv", "ClearSpeak_MultiLineLabel", "None", expr, "2, x plus y, lika med, 7; 2 x plus 3 y, lika med, 17;");
}
#[test]
fn equation_row() {
let expr = "
";
test_ClearSpeak("sv", "ClearSpeak_MultiLineLabel", "Row", expr, "2 rader, rad 1; x plus y, lika med, 7; rad 2; 2 x plus 3 y, lika med, 17;");
}
#[test]
fn equation_step() {
let expr = "
";
test_ClearSpeak("sv", "ClearSpeak_MultiLineLabel", "Step", expr, "2 steg, steg 1; x plus y, lika med, 7; steg 2; 2 x plus 3 y, lika med, 17;");
}