Skip to content

Commit

Permalink
Backport math fixes (#1030)
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Jellinghaus <contact@kaij.tech>
Co-authored-by: Beyley Thomas <ep1cm1n10n123@gmail.com>
  • Loading branch information
HurricanKai and Beyley authored Aug 12, 2022
1 parent 05db588 commit 0e59f63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Silk.NET.Maths.Tests/Vector3Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void Vector3CopyToTest()
Assert.Throws<NullReferenceException>(() => v1.CopyTo(null, 0));
Assert.Throws<ArgumentOutOfRangeException>(() => v1.CopyTo(a, -1));
Assert.Throws<ArgumentOutOfRangeException>(() => v1.CopyTo(a, a.Length));
Assert.Throws<ArgumentException>(null, () => v1.CopyTo(a, a.Length - 2));
Assert.Throws<ArgumentException>(() => v1.CopyTo(a, a.Length - 2));

v1.CopyTo(a, 1);
v1.CopyTo(b);
Expand Down
2 changes: 1 addition & 1 deletion tests/Silk.NET.Maths.Tests/Vector4Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void Vector4CopyToTest()
Assert.Throws<NullReferenceException>(() => v1.CopyTo(null, 0));
Assert.Throws<ArgumentOutOfRangeException>(() => v1.CopyTo(a, -1));
Assert.Throws<ArgumentOutOfRangeException>(() => v1.CopyTo(a, a.Length));
Assert.Throws<ArgumentException>(null, () => v1.CopyTo(a, a.Length - 2));
Assert.Throws<ArgumentException>(() => v1.CopyTo(a, a.Length - 2));

v1.CopyTo(a, 1);
v1.CopyTo(b);
Expand Down

0 comments on commit 0e59f63

Please sign in to comment.