Skip to content

Commit 1265067

Browse files
xperiandriclaude
andcommitted
fixup! test: SortedSet against the set contracts and the order of Set
The comments that got an explicit `<summary>` in the previous fixup refer to the functions, the properties and the types of FSharp.Core, of the BCL and of the library with `<see cref>`, not with `<c>` (the project instructions, the review of #31 and the review of CodeRabbit on #30). The `<c>` that stay name code samples and the types of the test project, which have no documentation file to refer to. No code changed: without the doc comments, the files are identical to the files before. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent f06ba4b commit 1265067

1 file changed

Lines changed: 31 additions & 11 deletions

File tree

‎tests/FSharp.Collections.Immutable.Tests/SortedSet/SortedSetTests.fs‎

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,51 @@ open Microsoft.VisualStudio.TestTools.UnitTesting
1414
/// creates sorted sets of any element type with F# comparison, which a table of functions of one type cannot do.
1515
/// </remarks>
1616
type SortedSetCreation =
17-
/// <summary><c>SortedSet.empty</c>, which ignores the elements.</summary>
17+
/// <summary><see cref="M:FSharp.Collections.Immutable.SortedSet.Empty``1"/>, which ignores the elements.</summary>
1818
| Empty
19-
/// <summary><c>SortedSet.ofArray</c>.</summary>
19+
/// <summary><see cref="M:FSharp.Collections.Immutable.SortedSet.OfArray``1(``0[])"/>.</summary>
2020
| OfArray
21-
/// <summary><c>SortedSet.ofList</c>, with the elements in a list.</summary>
21+
/// <summary>
22+
/// <see cref="M:FSharp.Collections.Immutable.SortedSet.OfList``1(Microsoft.FSharp.Collections.FSharpList{``0})"/>,
23+
/// with the elements in a list.
24+
/// </summary>
2225
| OfList
2326
/// <summary>
24-
/// <c>SortedSet.ofReadOnlySpan</c>, with a read-only span over the elements.
27+
/// <see cref="M:FSharp.Collections.Immutable.SortedSet.OfReadOnlySpan``1(System.ReadOnlySpan{``0})"/>,
28+
/// with a read-only span over the elements.
2529
/// </summary>
2630
| OfReadOnlySpan
27-
/// <summary><c>SortedSet.ofSeq</c>, with the elements in a lazy sequence.</summary>
31+
/// <summary>
32+
/// <see cref="M:FSharp.Collections.Immutable.SortedSet.OfSeq``1(System.Collections.Generic.IEnumerable{``0})"/>,
33+
/// with the elements in a lazy sequence.
34+
/// </summary>
2835
| OfSeq
29-
/// <summary><c>SortedSet.ofSpan</c>, with a span over the elements.</summary>
36+
/// <summary>
37+
/// <see cref="M:FSharp.Collections.Immutable.SortedSet.OfSpan``1(System.Span{``0})"/>,
38+
/// with a span over the elements.
39+
/// </summary>
3040
| OfSpan
31-
/// <summary><c>SortedSet.add</c> of every element to <c>SortedSet.empty</c>.</summary>
41+
/// <summary>
42+
/// <see cref="M:FSharp.Collections.Immutable.SortedSet.Add``1(``0,System.Collections.Immutable.ImmutableSortedSet{``0})"/> of every element to
43+
/// <see cref="M:FSharp.Collections.Immutable.SortedSet.Empty``1"/>.
44+
/// </summary>
3245
| Add
3346
/// <summary>
34-
/// <c>SortedSet.singleton</c> of every element, united by <c>SortedSet.unionMany</c>.
47+
/// <see cref="M:FSharp.Collections.Immutable.SortedSet.Singleton``1(``0)"/>
48+
/// of every element, united by
49+
/// <see cref="M:FSharp.Collections.Immutable.SortedSet.UnionMany``1(System.Collections.Generic.IEnumerable{System.Collections.Immutable.ImmutableSortedSet{``0}})"/>.
3550
/// </summary>
3651
| Singleton
3752
/// <summary>
38-
/// <c>SortedSet.build</c> with an action that adds the elements to the builder.
53+
/// <see cref="M:FSharp.Collections.Immutable.SortedSet.Build``1(Microsoft.FSharp.Core.FSharpFunc{System.Collections.Immutable.ImmutableSortedSet.Builder{``0},Microsoft.FSharp.Core.Unit})"/>
54+
/// with an action that adds the elements to the builder.
3955
/// </summary>
4056
| Build
4157
/// <summary>
42-
/// A builder of <c>SortedSet.builder</c> filled with the elements, through <c>SortedSet.ofBuilder</c>.
58+
/// A builder of
59+
/// <see cref="M:FSharp.Collections.Immutable.SortedSet.CreateBuilder``1"/>
60+
/// filled with the elements, through
61+
/// <see cref="M:FSharp.Collections.Immutable.SortedSet.OfBuilder``1(System.Collections.Immutable.ImmutableSortedSet.Builder{``0})"/>.
4362
/// </summary>
4463
| Builder
4564

@@ -130,7 +149,8 @@ type SortedSetTests () =
130149
/// "Banana".
131150
/// </summary>
132151
/// <remarks>
133-
/// <c>empty</c> and <c>singleton</c> get the other elements through <c>SortedSet.add</c>.
152+
/// <c>empty</c> and <c>singleton</c> get the other elements through
153+
/// <see cref="M:FSharp.Collections.Immutable.SortedSet.Add``1(``0,System.Collections.Immutable.ImmutableSortedSet{``0})"/>.
134154
/// </remarks>
135155
static let structCreations : Map<string, unit -> SortedSet<string>> =
136156
Map.ofArray [|

0 commit comments

Comments
 (0)