Skip to content

Commit

Permalink
Ensure that SKMatrix.IsInvertible does not crash (#1527)
Browse files Browse the repository at this point in the history
Fixes #1526
  • Loading branch information
mattleibow authored Oct 10, 2020
1 parent 13e0b47 commit 753bd44
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion externals/skia
Submodule skia updated 1 files
+7 −5 src/c/sk_matrix.cpp
11 changes: 11 additions & 0 deletions tests/Tests/SKMatrixTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,17 @@ public void IsInvertibleIsFalseForNonInvertableMatrix()
Assert.False(matrix.IsInvertible);
}

[SkippableFact]
public void IsInvertibleIsTrueForInvertableMatrix()
{
var matrix = new SKMatrix(
1, 2, 3,
0, 1, 4,
5, 6, 1);

Assert.True(matrix.IsInvertible);
}

[SkippableFact]
public void InverseOfMatrixIsCorrect()
{
Expand Down

0 comments on commit 753bd44

Please sign in to comment.