Skip to content

Commit

Permalink
CsCheck 3.0.0-rc3
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLloyd committed Nov 2, 2023
1 parent adaec90 commit c3f2d7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Tests/MapTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public void Map_Set_ModelBased()
.SampleModelBased(
Gen.Select(Gen.Int[0, 100], Gen.Byte).Operation<Map<int, byte>, Dictionary<int, byte>>((map, dictionary, t) =>
{
map[t.V0] = t.V1;
dictionary[t.V0] = t.V1;
map[t.Item1] = t.Item2;
dictionary[t.Item1] = t.Item2;
})
);
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="CsCheck" Version="2.10.0" />
<PackageReference Include="CsCheck" Version="3.0.0-rc3" />
<ProjectReference Include="..\Optimized.Collections\Optimized.Collections.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Tests/VecTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void Vec_Concurrency()
.SampleConcurrent(
Gen.Byte.Operation<Vec<byte>>((v, i) => { lock (v) v.Add(i); }),
Gen.Int.NonNegative.Operation<Vec<byte>>((v, i) => { if (i < v.Count) { _ = v[i]; } }),
Gen.Int.NonNegative.Select(Gen.Byte).Operation<Vec<byte>>((v, t) => { if (t.V0 < v.Count) v[t.V0] = t.V1; }),
Gen.Int.NonNegative.Select(Gen.Byte).Operation<Vec<byte>>((v, t) => { if (t.Item1 < v.Count) v[t.Item1] = t.Item2; }),
Gen.Operation<Vec<byte>>(v => v.ToArray()),
Gen.Operation<Vec<byte>>(v => _ = v.Capacity)
);
Expand Down

0 comments on commit c3f2d7a

Please sign in to comment.