Skip to content

Bump several dependencies at once, see for details the referenced PRs #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Oct 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"fantomas": {
"version": "6.0.4",
"version": "6.2.0",
"commands": [
"fantomas"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
</ItemGroup>

<ItemGroup>
<!-- our smoketests use the highest RTM (non-alpha) FSharp.Core, contrary to the base test project, which uses the lowest possible denominator -->
<PackageReference Update="FSharp.Core" Version="7.0.401" />
<PackageReference Include="FSharp.Control.TaskSeq" Version="0.4.0-alpha.1" />
<PackageReference Include="FsUnit.xUnit" Version="5.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.1" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PackageReference Include="FsUnit.xUnit" Version="5.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="xunit" Version="2.5.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
<!-- we use 6.0.3 here and not 6.0.2 because TaskResult lib requires it-->
<PackageReference Update="FSharp.Core" Version="6.0.3" />
<PackageReference Include="FsToolkit.ErrorHandling.TaskResult" Version="3.2.0" />
<PackageReference Include="FsUnit.xUnit" Version="5.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.1" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="FsUnit.xUnit" Version="5.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="xunit" Version="2.5.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
16 changes: 12 additions & 4 deletions src/FSharp.Control.TaskSeq.Test/Nunit.Extensions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ module ExtraCustomMatchers =
let private baseResultTypeTest value =
match value with
| null ->
MatchException("Result type", "<null>", "Value <null> or None is never Result.Ok or Result.Error")
EqualException.ForMismatchedValues(
"Result type",
"<null>",
"Value <null> or None is never Result.Ok or Result.Error"
)
|> raise

| _ ->
Expand All @@ -31,7 +35,7 @@ module ExtraCustomMatchers =
if ty.FullName.StartsWith "Microsoft.FSharp.Core.FSharpResult" then
FSharpValue.GetUnionFields(value, ty) |> fst
else
MatchException("Result type", ty.Name, "Type must be Result<_, _>")
EqualException.ForMismatchedValues("Result type", ty.Name, "Type must be Result<_, _>")
|> raise

let private baseOptionTypeTest value =
Expand All @@ -49,9 +53,13 @@ module ExtraCustomMatchers =
| "None" -> None
| _ ->
raise
<| MatchException("Option type", ty.Name, "Unexpected field name for F# option type")
<| EqualException.ForMismatchedValues(
"Option type",
ty.Name,
"Unexpected field name for F# option type"
)
else
MatchException("Option type", ty.Name, "Type must be Option<_>")
EqualException.ForMismatchedValues("Option type", ty.Name, "Type must be Option<_>")
|> raise


Expand Down