Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DedSec256 committed Aug 30, 2022
1 parent db9b4fd commit 1ff085d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/FSharp.ApiDocs.Tests/ApiDocsTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,13 @@ let ``ApiDocs works on two sample F# assemblies`` (format: OutputFormat) =
files[$"fslib-operatorswithfsi.%s{format.Extension}"]
|> shouldContainText "x ?<? y"

// -arg0
// <?arg0
files[$"fslib-operatorswithfsi.%s{format.Extension}"]
|> shouldContainText "~-arg0"
|> shouldContainText "&lt;?arg0"

// ?-x
// <?>x
files[$"fslib-operatorswithfsi.%s{format.Extension}"]
|> shouldContainText "~?-x"
|> shouldContainText "&lt;?&gt;x"

(* This may be addressed in a separate issue or removed if not an issue.
// Check that implict cast operator is generated correctly
Expand Down
4 changes: 2 additions & 2 deletions tests/FSharp.ApiDocs.Tests/files/FsLib1/OperatorsWithFsi.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

let ( <&> ) x y = x > y
let ( ?<? ) x y = x > y
let (~-) x = x
let (~?-) x = x
let (<?) x = x
let (<?>) x = x
4 changes: 2 additions & 2 deletions tests/FSharp.ApiDocs.Tests/files/FsLib1/OperatorsWithFsi.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ val ( <&> ): 'T -> 'T -> bool when 'T : comparison
val ( ?<? ): x: 'T -> y: 'T -> bool when 'T : comparison

/// <summary>The unary operator 1</summary>
val (~-): 'T -> 'T
val (<?): 'T -> 'T

/// <summary>The unary operator 2</summary>
val (~?-): x: 'T -> 'T
val (<?>): x: 'T -> 'T

0 comments on commit 1ff085d

Please sign in to comment.