Skip to content

Commit bd87dad

Browse files
committed
#1128: Number of Equivalent Domino Pairs; tests
1 parent 70c146f commit bd87dad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

c-sharp/Tests/arrays-and-hashing/NumberOfEquivalentDominoPairsTests.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ private static IEnumerable TestCases
1414
{
1515
get
1616
{
17-
yield return TestCaseData( new int[][] { [] } ).Returns( 0 );
17+
yield return new TestCaseData( [new int[][] { [1, 2], [2, 1], [3, 4], [5, 6] }] ).Returns( 1 );
18+
19+
yield return new TestCaseData( [new int[][] { [1, 2], [1, 2], [1, 1], [1, 2], [2, 2] }] ).Returns( 3 );
20+
21+
yield return new TestCaseData( [new int[][] { [1, 1], [2, 2], [1, 1], [1, 2], [1, 2], [1, 1] }] ).Returns( 4 );
1822
}
1923
}
2024
}

0 commit comments

Comments
 (0)