Skip to content

Commit

Permalink
add test for 'times' for matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
NSoiffer committed Jan 17, 2025
1 parent fe980c7 commit 838f406
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Languages/en/mtable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,16 @@ fn matrix_binomial() {
test_ClearSpeak("en", "ClearSpeak_Matrix", "Combinatorics", expr, "3 choose 2");
}

#[test]
fn matrix_times() {
let expr = "<math>
<mfenced><mtable><mtr><mtd><mn>1</mn></mtd><mtd><mn>2</mn></mtd></mtr><mtr><mtd><mn>3</mn></mtd><mtd><mn>4</mn></mtd></mtr></mtable></mfenced>
<mfenced><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mfenced>
</math>";
test("en", "SimpleSpeak", expr,
"the 2 by 2 matrix; row 1; 1, 2; row 2; 3, 4; times, the 2 by 2 matrix; row 1; eigh, b; row 2; c, d;");
}

#[test]
fn unknown_mtable_property() {
let expr = "<math display='block'>
Expand Down

0 comments on commit 838f406

Please sign in to comment.