Skip to content

Commit

Permalink
Tests(Console): fix bug in tests
Browse files Browse the repository at this point in the history
Fix bug in tests where empty sets of different types would be
treated as different.

Error was:
```
Expected is <Microsoft.FSharp.Collections.FSharpSet`1[System.IComparable]>, actual is <Microsoft.FSharp.Collections.FSharpSet`1[System.String]>
```
  • Loading branch information
webwarrior-ws committed Feb 14, 2024
1 parent 2e5fa7b commit ca3ef3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/FSharpLint.Console.Tests/TestApp.fs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type TestConsoleApplication() =
let (returnCode, errors) = main [| "lint"; "--lint-config"; config.FileName; input |]

Assert.AreEqual(0, returnCode)
Assert.AreEqual(Set.empty, errors)
Assert.IsEmpty errors

[<Test>]
member __.``Lint source with error suppressed, no error is given.``() =
Expand All @@ -94,7 +94,7 @@ type TestConsoleApplication() =
let (returnCode, errors) = main [| "lint"; input |]

Assert.AreEqual(0, returnCode)
Assert.AreEqual(Set.empty, errors)
Assert.IsEmpty errors

[<Test>]
member __.``Regression test: typePrefixing rule with old config format should still work``() =
Expand Down

0 comments on commit ca3ef3a

Please sign in to comment.