Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
  • Loading branch information
rgrinberg committed May 11, 2024
1 parent a3a156c commit 9e1b3e9
Showing 1 changed file with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions ocaml-lsp-server/test/e2e/__tests__/textDocument-signatureHelp.ts
Expand Up @@ -247,32 +247,32 @@ describe_opt("textDocument/completion", () => {
(** This is an example of a docstring that demonstrates various ocamldoc syntax features.
{3 Sections and Labels}
We can create sections using {3 Section title} and labels using {3:label_name Section title with label}
{3 Links and Cross-references}
External links: {{:https://ocaml.org/} OCaml's official website}
Cross-references: {!List.length} {{!List.length} Replacement text}
{3 Inline Formatting}
{b Bold}, {i Italic}, {e Emphasize}, {^ Superscript}, {_ Subscript}, and [inline code]
{3 Text Alignment}
{C Centered text}
{L Left-aligned text}
{R Right-aligned text}
{3 Lists}
{ol
{- Ordered list item 1}
{- Ordered list item 2}
}
{ul
{- Unordered list item 1}
{- Unordered list item 2}
Expand All @@ -282,7 +282,7 @@ describe_opt("textDocument/completion", () => {
- Unordered list item 2
{3 Code Blocks}
{[
let square x = x * x
let result = square 3
Expand All @@ -292,18 +292,18 @@ describe_opt("textDocument/completion", () => {
def f():
return 0
]}
{3 Verbatim}
{v
This text will be displayed verbatim.
No formatting will be applied.
v}
{3 Module List}
{!modules: Array List String}
@param x dividend
@param divisor
Expand All @@ -327,7 +327,7 @@ describe_opt("textDocument/completion", () => {
`,
);

let items = await querySignatureHelp(Types.Position.create(23, 13));
let items = await querySignatureHelp(Types.Position.create(80, 13));
expect(items).toMatchObject({
activeSignature: 0,
activeParameter: 0,
Expand All @@ -345,48 +345,48 @@ describe_opt("textDocument/completion", () => {
documentation: {
kind: "markdown",
value: outdent`This is an example of a docstring that demonstrates various ocamldoc syntax features.
#### Sections and Labels
We can create sections using
We can create sections using
#### Section title
and labels using
and labels using
#### Section title with label
#### Links and Cross-references
External links: [OCaml's official website](https://ocaml.org/)
Cross-references: \`List.length\` Replacement text
#### Inline Formatting
**Bold**, *Italic*, *Emphasize*, ^{Superscript}, \\_{Subscript}, and \`inline code\`
#### Text Alignment
Centered text
Left-aligned text
Right-aligned text
#### Lists
1. Ordered list item 1
2. Ordered list item 2
- Unordered list item 1
- Unordered list item 2
- Unordered list item 1
- Unordered list item 2
#### Code Blocks
\`\`\`ocaml
let square x = x * x
let result = square 3
Expand All @@ -398,44 +398,44 @@ describe_opt("textDocument/completion", () => {
\`\`\`
#### Verbatim
\`\`\`verb
This text will be displayed verbatim.
No formatting will be applied.
\`\`\`
#### Module List
* Array
* List
* String
***@param*** \`x\`
dividend
***@param*** divisor
***@return***
*quotient*, i.e. result of division
***@raise*** \`Division_by_zero\`
raised when divided by zero
***@see*** [link](https://en.wikipedia.org/wiki/Arithmetic#Division_\\(%C3%B7,_or_/\\))
article
***@see*** \`arithmetic.ml\`
for more context
***@since*** \`4.0.0\`
***@before*** \`4.4.0\`
***@deprecated***
use \`(/)\`
***@version*** \`1.0.0\`
***@author*** John Doe
`,
},
Expand Down

0 comments on commit 9e1b3e9

Please sign in to comment.