From 1ff085da6f5abbc1c1077e0b7f4a057d28360ae3 Mon Sep 17 00:00:00 2001 From: Alex Berezhnykh Date: Tue, 30 Aug 2022 23:36:36 +0300 Subject: [PATCH] fix --- tests/FSharp.ApiDocs.Tests/ApiDocsTests.fs | 8 ++++---- .../FSharp.ApiDocs.Tests/files/FsLib1/OperatorsWithFsi.fs | 4 ++-- .../files/FsLib1/OperatorsWithFsi.fsi | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/FSharp.ApiDocs.Tests/ApiDocsTests.fs b/tests/FSharp.ApiDocs.Tests/ApiDocsTests.fs index 6690ac985..f428c4d2a 100644 --- a/tests/FSharp.ApiDocs.Tests/ApiDocsTests.fs +++ b/tests/FSharp.ApiDocs.Tests/ApiDocsTests.fs @@ -263,13 +263,13 @@ let ``ApiDocs works on two sample F# assemblies`` (format: OutputFormat) = files[$"fslib-operatorswithfsi.%s{format.Extension}"] |> shouldContainText "x ?<? y" - // -arg0 + // shouldContainText "~-arg0" + |> shouldContainText "<?arg0" - // ?-x + // x files[$"fslib-operatorswithfsi.%s{format.Extension}"] - |> shouldContainText "~?-x" + |> shouldContainText "<?>x" (* This may be addressed in a separate issue or removed if not an issue. // Check that implict cast operator is generated correctly diff --git a/tests/FSharp.ApiDocs.Tests/files/FsLib1/OperatorsWithFsi.fs b/tests/FSharp.ApiDocs.Tests/files/FsLib1/OperatorsWithFsi.fs index fb4f4d4dd..dbc0ce148 100644 --- a/tests/FSharp.ApiDocs.Tests/files/FsLib1/OperatorsWithFsi.fs +++ b/tests/FSharp.ApiDocs.Tests/files/FsLib1/OperatorsWithFsi.fs @@ -2,5 +2,5 @@ let ( <&> ) x y = x > y let ( ? y -let (~-) x = x -let (~?-) x = x +let () x = x diff --git a/tests/FSharp.ApiDocs.Tests/files/FsLib1/OperatorsWithFsi.fsi b/tests/FSharp.ApiDocs.Tests/files/FsLib1/OperatorsWithFsi.fsi index 1b0e1acd8..e629258d1 100644 --- a/tests/FSharp.ApiDocs.Tests/files/FsLib1/OperatorsWithFsi.fsi +++ b/tests/FSharp.ApiDocs.Tests/files/FsLib1/OperatorsWithFsi.fsi @@ -7,8 +7,8 @@ val ( <&> ): 'T -> 'T -> bool when 'T : comparison val ( ? y: 'T -> bool when 'T : comparison /// The unary operator 1 -val (~-): 'T -> 'T +val ( 'T /// The unary operator 2 -val (~?-): x: 'T -> 'T +val (): x: 'T -> 'T