Skip to content

Commit

Permalink
Test to verify old Linq error. Closes GH-2401
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed Nov 26, 2023
1 parent 861f255 commit 3344754
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/LinqTests/Acceptance/child_collection_queries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ static child_collection_queries()
@where(x => x.NumberArray.Any());

@where(x => x.StringArray != null && x.StringArray.Any(c => c.StartsWith("o")));

// These permutations come from GH-2401
@where(x => x.StringArray != null && x.String.Equals("Orange") && x.StringArray.Contains("Red"));
@where(x => x.StringArray != null && !x.StringArray.Contains("Red") && x.String.Equals("Orange"));
@where(x => x.StringArray != null && x.String.Equals("Orange") && !x.StringArray.Contains("Red"));
@where(x => x.StringArray != null && x.String.Equals("Orange") && x.StringArray.Contains("Red") && x.AnotherString.Equals("one"));
}

[Theory]
Expand Down

0 comments on commit 3344754

Please sign in to comment.