Skip to content

Commit

Permalink
Correct Constant List and Value merge tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Struan Judd committed Jan 2, 2024
1 parent 4c18d3b commit 1e2a62e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using GqlPlus.Verifier.Ast;
using Newtonsoft.Json.Linq;

namespace GqlPlus.Verifier.Merging;

Expand All @@ -20,7 +21,7 @@ public void Merge_TwoItemsValueAndList_ReturnsExpected(string valueA, string[] l
var itemA = MakeValue(valueA);
var itemB = MakeList(listB);

Merge_Expected([itemA, itemB], MakeList([valueA, .. listB]));
Merge_Expected([itemA, itemB], listB.Contains(valueA), MakeList([valueA, .. listB]));
}

[Theory, RepeatData(Repeats)]
Expand All @@ -38,7 +39,7 @@ public void Merge_TwoItemsListAndValue_ReturnsExpected(string[] listA, string va
var itemA = MakeList(listA);
var itemB = MakeValue(valueB);

Merge_Expected([itemA, itemB], MakeList([.. listA, valueB]));
Merge_Expected([itemA, itemB], listA.Contains(valueB), MakeList([.. listA, valueB]));
}

[Theory, RepeatData(Repeats)]
Expand Down

0 comments on commit 1e2a62e

Please sign in to comment.