From ca3ef3acee1cd786f4dc75e6e530f80d5e3a41c5 Mon Sep 17 00:00:00 2001 From: webwarrior Date: Wed, 14 Feb 2024 14:25:52 +0100 Subject: [PATCH] Tests(Console): fix bug in tests Fix bug in tests where empty sets of different types would be treated as different. Error was: ``` Expected is , actual is ``` --- tests/FSharpLint.Console.Tests/TestApp.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/FSharpLint.Console.Tests/TestApp.fs b/tests/FSharpLint.Console.Tests/TestApp.fs index 68b69ab64..aaf486be9 100644 --- a/tests/FSharpLint.Console.Tests/TestApp.fs +++ b/tests/FSharpLint.Console.Tests/TestApp.fs @@ -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 [] member __.``Lint source with error suppressed, no error is given.``() = @@ -94,7 +94,7 @@ type TestConsoleApplication() = let (returnCode, errors) = main [| "lint"; input |] Assert.AreEqual(0, returnCode) - Assert.AreEqual(Set.empty, errors) + Assert.IsEmpty errors [] member __.``Regression test: typePrefixing rule with old config format should still work``() =