Skip to content

Commit

Permalink
(ForNeVeR#387) Add a test for empty matrix cell, update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Apr 25, 2023
1 parent 18f9051 commit 2cd2477
Show file tree
Hide file tree
Showing 6 changed files with 672 additions and 42 deletions.
4 changes: 4 additions & 0 deletions src/WpfMath.Tests/BoxTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ let nestedMatrixBox() =
let wideItemInMatrixBox() =
verifyBox @"x = \pmatrix{0 & -r & 0 \\ 0 & 0 & -r sin^2(\theta)}"

[<Fact>]
let emptyCellMatrix() =
verifyBox @"\matrix{A & B \\ A & B \\ & B}"

[<Fact>]
let shortСommandForThinspace(): unit =
verifyBox @"\,"
Expand Down
12 changes: 6 additions & 6 deletions src/WpfMath.Tests/TestResults/BoxTests.casesBox.approved.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"Foreground": null,
"Height": 0.175,
"Italic": 0.0,
"Shift": 0.35,
"Shift": 0.0,
"Source": null,
"TotalHeight": 0.175,
"TotalWidth": 0.0,
Expand Down Expand Up @@ -101,7 +101,7 @@
"Foreground": null,
"Height": 0.175,
"Italic": 0.0,
"Shift": 0.35,
"Shift": 0.0,
"Source": null,
"TotalHeight": 0.175,
"TotalWidth": 0.0,
Expand Down Expand Up @@ -155,7 +155,7 @@
"Foreground": null,
"Height": 0.175,
"Italic": 0.0,
"Shift": 0.35,
"Shift": 0.0,
"Source": null,
"TotalHeight": 0.175,
"TotalWidth": 0.0,
Expand Down Expand Up @@ -199,7 +199,7 @@
"Foreground": null,
"Height": 0.175,
"Italic": 0.0,
"Shift": 0.35,
"Shift": 0.0,
"Source": null,
"TotalHeight": 0.175,
"TotalWidth": 0.0,
Expand Down Expand Up @@ -253,7 +253,7 @@
"Foreground": null,
"Height": 0.175,
"Italic": 0.0,
"Shift": 0.35,
"Shift": 0.0,
"Source": null,
"TotalHeight": 0.175,
"TotalWidth": 0.0,
Expand Down Expand Up @@ -297,7 +297,7 @@
"Foreground": null,
"Height": 0.175,
"Italic": 0.0,
"Shift": 0.35,
"Shift": 0.0,
"Source": null,
"TotalHeight": 0.175,
"TotalWidth": 0.0,
Expand Down
Loading

0 comments on commit 2cd2477

Please sign in to comment.