Skip to content

Commit 9621029

Browse files
Codacy Static Code Analysis fix
1 parent 0aea7e7 commit 9621029

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Algorithms.Tests/Numeric/AbsTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ public static void GetsAbsVal<T>(T inputNum, T expected) where T : INumber<T>
2020
Assert.That(result, Is.EqualTo(expected));
2121
}
2222

23-
[TestCase(new int[] { -3, -1, 2, -11 }, -11)]
24-
[TestCase(new int[] { 0, 5, 1, 11 }, 11)]
25-
[TestCase(new double[] { 3.0, -10.0, -2.0 }, -10.0d)]
23+
[TestCase(new[] { -3, -1, 2, -11 }, -11)]
24+
[TestCase(new[] { 0, 5, 1, 11 }, 11)]
25+
[TestCase(new[] { 3.0, -10.0, -2.0 }, -10.0d)]
2626
public static void GetAbsMax<T>(T[] inputNums, T expected) where T : INumber<T>
2727
{
2828
// Act
@@ -32,9 +32,9 @@ public static void GetAbsMax<T>(T[] inputNums, T expected) where T : INumber<T>
3232
Assert.That(result, Is.EqualTo(expected));
3333
}
3434

35-
[TestCase(new int[] { -3, -1, 2, -11 }, -1)]
36-
[TestCase(new int[] { -3, -5, 1, -11 }, 1)]
37-
[TestCase(new int[] { 0, 5, 1, 11 }, 0)]
35+
[TestCase(new[] { -3, -1, 2, -11 }, -1)]
36+
[TestCase(new[] { -3, -5, 1, -11 }, 1)]
37+
[TestCase(new[] { 0, 5, 1, 11 }, 0)]
3838
public static void GetAbsMin<T>(T[] inputNums, T expected) where T : INumber<T>
3939
{
4040
// Act

0 commit comments

Comments
 (0)