Skip to content

Commit

Permalink
Improve test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
andreise committed Jan 1, 2025
1 parent c0ea8f7 commit a2202e9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ partial class NotEqualCaseSource_Equals
new int?[] { 1, 2, 3 },
new int?[] { 1, 2, 3, 4 }
);
yield return (
new int?[] { null },
new int?[] { 0 }
);
yield return (
new int?[] { null },
new int?[] { 1 }
Expand All @@ -49,19 +53,19 @@ partial class NotEqualCaseSource_Equals
);
yield return (
new int?[] { 1, 2, 3, 4 },
new int?[] { 1, 2, 3, 3 }
new int?[] { 0, 2, 3, 4 }
);
yield return (
new int?[] { 1, 2, 3, 4 },
new int?[] { 1, 2, 2, 4 }
new int?[] { 1, 1, 3, 4 }
);
yield return (
new int?[] { 1, 2, 3, 4 },
new int?[] { 1, 1, 3, 4 }
new int?[] { 1, 2, 2, 4 }
);
yield return (
new int?[] { 1, 2, 3, 4 },
new int?[] { 0, 2, 3, 4 }
new int?[] { 1, 2, 3, 3 }
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ partial class NotEqualCaseSource_Equals
new[] { "1", "2", "3" },
new[] { "1", "2", "3", "4" }
);
yield return (
new[] { (string?)null },
new[] { "" }
);
yield return (
new[] { (string?)null },
new[] { "1" }
Expand All @@ -49,19 +53,19 @@ partial class NotEqualCaseSource_Equals
);
yield return (
new[] { "1", "2", "3", "4" },
new[] { "1", "2", "3", "3" }
new[] { "0", "2", "3", "4" }
);
yield return (
new[] { "1", "2", "3", "4" },
new[] { "1", "2", "2", "4" }
new[] { "1", "1", "3", "4" }
);
yield return (
new[] { "1", "2", "3", "4" },
new[] { "1", "1", "3", "4" }
new[] { "1", "2", "2", "4" }
);
yield return (
new[] { "1", "2", "3", "4" },
new[] { "0", "2", "3", "4" }
new[] { "1", "2", "3", "3" }
);
}
}

0 comments on commit a2202e9

Please sign in to comment.