Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aspeddro committed Dec 16, 2024
1 parent 01dfa5a commit 500e714
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 96 deletions.
134 changes: 67 additions & 67 deletions tests/analysis_tests/tests/src/expected/Completion.res.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ Path Belt.Int.f
"kind": 12,
"tags": [],
"detail": "string => option<int>",
"documentation": {"kind": "markdown", "value": "\nConverts a given `string` to an `int`. Returns `Some(int)` when the input is a number, `None` otherwise.\n\n## Examples\n\n```rescript\nBelt.Int.fromString(\"1\")->assert_eq(Some(1))\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `string` to an `int`. Returns `Some(int)` when the input is a number, `None` otherwise.\n\n## Examples\n\n```rescript\nBelt.Int.fromString(\"1\")->assertEqual(Some(1))\n```\n"}
}, {
"label": "Belt.Int.fromFloat",
"kind": 12,
"tags": [],
"detail": "float => int",
"documentation": {"kind": "markdown", "value": "\nConverts a given `float` to an `int`.\n\n## Examples\n\n```rescript\nBelt.Int.fromFloat(1.0)->assert_eq(1)\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `float` to an `int`.\n\n## Examples\n\n```rescript\nBelt.Int.fromFloat(1.0)->assertEqual(1)\n```\n"}
}]

Complete src/CompletionInferValues.res 18:30
Expand Down Expand Up @@ -244,13 +244,13 @@ Path Belt.Int.t
"kind": 12,
"tags": [],
"detail": "int => string",
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
}, {
"label": "Belt.Int.toFloat",
"kind": 12,
"tags": [],
"detail": "int => float",
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assert_eq(1.0)\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assertEqual(1.0)\n```\n"}
}]

Complete src/CompletionInferValues.res 50:108
Expand Down Expand Up @@ -473,7 +473,7 @@ Path Belt.Int.toS
"kind": 12,
"tags": [],
"detail": "int => string",
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
}]

Complete src/CompletionInferValues.res 98:109
Expand All @@ -498,7 +498,7 @@ Path Belt.Int.toS
"kind": 12,
"tags": [],
"detail": "int => string",
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
}]

Complete src/CompletionInferValues.res 102:102
Expand All @@ -524,7 +524,7 @@ Path Belt.Int.toS
"kind": 12,
"tags": [],
"detail": "int => string",
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
}]

Complete src/CompletionInferValues.res 106:88
Expand Down Expand Up @@ -656,7 +656,7 @@ Path Belt.Int.toSt
"kind": 12,
"tags": [],
"detail": "int => string",
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
}]

Complete src/CompletionInferValues.res 130:26
Expand Down
32 changes: 16 additions & 16 deletions tests/analysis_tests/tests/src/expected/CompletionJsx.res.txt
Original file line number Diff line number Diff line change
Expand Up @@ -230,49 +230,49 @@ Path Belt.Int.
"kind": 12,
"tags": [],
"detail": "string => option<int>",
"documentation": {"kind": "markdown", "value": "\nConverts a given `string` to an `int`. Returns `Some(int)` when the input is a number, `None` otherwise.\n\n## Examples\n\n```rescript\nBelt.Int.fromString(\"1\")->assert_eq(Some(1))\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `string` to an `int`. Returns `Some(int)` when the input is a number, `None` otherwise.\n\n## Examples\n\n```rescript\nBelt.Int.fromString(\"1\")->assertEqual(Some(1))\n```\n"}
}, {
"label": "Belt.Int.*",
"kind": 12,
"tags": [],
"detail": "(int, int) => int",
"documentation": {"kind": "markdown", "value": "\nMultiplication of two `int` values. Same as the multiplication from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(2 * 2, 4)\n```\n"}
"documentation": {"kind": "markdown", "value": "\nMultiplication of two `int` values. Same as the multiplication from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(2 * 2, 4)\n```\n"}
}, {
"label": "Belt.Int./",
"kind": 12,
"tags": [],
"detail": "(int, int) => int",
"documentation": {"kind": "markdown", "value": "\nDivision of two `int` values. Same as the division from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(4 / 2, 2)\n```\n"}
"documentation": {"kind": "markdown", "value": "\nDivision of two `int` values. Same as the division from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(4 / 2, 2)\n```\n"}
}, {
"label": "Belt.Int.toString",
"kind": 12,
"tags": [],
"detail": "int => string",
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
}, {
"label": "Belt.Int.toFloat",
"kind": 12,
"tags": [],
"detail": "int => float",
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assert_eq(1.0)\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assertEqual(1.0)\n```\n"}
}, {
"label": "Belt.Int.fromFloat",
"kind": 12,
"tags": [],
"detail": "float => int",
"documentation": {"kind": "markdown", "value": "\nConverts a given `float` to an `int`.\n\n## Examples\n\n```rescript\nBelt.Int.fromFloat(1.0)->assert_eq(1)\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `float` to an `int`.\n\n## Examples\n\n```rescript\nBelt.Int.fromFloat(1.0)->assertEqual(1)\n```\n"}
}, {
"label": "Belt.Int.-",
"kind": 12,
"tags": [],
"detail": "(int, int) => int",
"documentation": {"kind": "markdown", "value": "\nSubtraction of two `int` values. Same as the subtraction from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(2 - 1, 1)\n```\n"}
"documentation": {"kind": "markdown", "value": "\nSubtraction of two `int` values. Same as the subtraction from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(2 - 1, 1)\n```\n"}
}, {
"label": "Belt.Int.+",
"kind": 12,
"tags": [],
"detail": "(int, int) => int",
"documentation": {"kind": "markdown", "value": "\nAddition of two `int` values. Same as the addition from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(2 + 2, 4)\n```\n"}
"documentation": {"kind": "markdown", "value": "\nAddition of two `int` values. Same as the addition from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(2 + 2, 4)\n```\n"}
}]

Complete src/CompletionJsx.res 26:14
Expand Down Expand Up @@ -310,49 +310,49 @@ Path Belt.Int.
"kind": 12,
"tags": [],
"detail": "string => option<int>",
"documentation": {"kind": "markdown", "value": "\nConverts a given `string` to an `int`. Returns `Some(int)` when the input is a number, `None` otherwise.\n\n## Examples\n\n```rescript\nBelt.Int.fromString(\"1\")->assert_eq(Some(1))\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `string` to an `int`. Returns `Some(int)` when the input is a number, `None` otherwise.\n\n## Examples\n\n```rescript\nBelt.Int.fromString(\"1\")->assertEqual(Some(1))\n```\n"}
}, {
"label": "Belt.Int.*",
"kind": 12,
"tags": [],
"detail": "(int, int) => int",
"documentation": {"kind": "markdown", "value": "\nMultiplication of two `int` values. Same as the multiplication from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(2 * 2, 4)\n```\n"}
"documentation": {"kind": "markdown", "value": "\nMultiplication of two `int` values. Same as the multiplication from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(2 * 2, 4)\n```\n"}
}, {
"label": "Belt.Int./",
"kind": 12,
"tags": [],
"detail": "(int, int) => int",
"documentation": {"kind": "markdown", "value": "\nDivision of two `int` values. Same as the division from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(4 / 2, 2)\n```\n"}
"documentation": {"kind": "markdown", "value": "\nDivision of two `int` values. Same as the division from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(4 / 2, 2)\n```\n"}
}, {
"label": "Belt.Int.toString",
"kind": 12,
"tags": [],
"detail": "int => string",
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
}, {
"label": "Belt.Int.toFloat",
"kind": 12,
"tags": [],
"detail": "int => float",
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assert_eq(1.0)\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assertEqual(1.0)\n```\n"}
}, {
"label": "Belt.Int.fromFloat",
"kind": 12,
"tags": [],
"detail": "float => int",
"documentation": {"kind": "markdown", "value": "\nConverts a given `float` to an `int`.\n\n## Examples\n\n```rescript\nBelt.Int.fromFloat(1.0)->assert_eq(1)\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `float` to an `int`.\n\n## Examples\n\n```rescript\nBelt.Int.fromFloat(1.0)->assertEqual(1)\n```\n"}
}, {
"label": "Belt.Int.-",
"kind": 12,
"tags": [],
"detail": "(int, int) => int",
"documentation": {"kind": "markdown", "value": "\nSubtraction of two `int` values. Same as the subtraction from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(2 - 1, 1)\n```\n"}
"documentation": {"kind": "markdown", "value": "\nSubtraction of two `int` values. Same as the subtraction from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(2 - 1, 1)\n```\n"}
}, {
"label": "Belt.Int.+",
"kind": 12,
"tags": [],
"detail": "(int, int) => int",
"documentation": {"kind": "markdown", "value": "\nAddition of two `int` values. Same as the addition from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(2 + 2, 4)\n```\n"}
"documentation": {"kind": "markdown", "value": "\nAddition of two `int` values. Same as the addition from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(2 + 2, 4)\n```\n"}
}]

Complete src/CompletionJsx.res 28:20
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,13 @@ Path Belt.Int.t
"kind": 12,
"tags": [],
"detail": "int => string",
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
}, {
"label": "Belt.Int.toFloat",
"kind": 12,
"tags": [],
"detail": "int => float",
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assert_eq(1.0)\n```\n"}
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assertEqual(1.0)\n```\n"}
}]

Complete src/CompletionPipeChain.res 70:12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ extracted params:
"signatures": [{
"label": "(array<int>, int => int) => array<int>",
"parameters": [{"label": [1, 11], "documentation": {"kind": "markdown", "value": ""}}, {"label": [13, 23], "documentation": {"kind": "markdown", "value": ""}}],
"documentation": {"kind": "markdown", "value": "\n`map(array, fn)` returns a new array with all elements from `array`, each element transformed using the provided `fn`.\n\nSee [`Array.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) on MDN.\n\n## Examples\n\n```rescript\nlet array = [\"Hello\", \"Hi\", \"Good bye\"]\nlet mappedArray = array->Array.map(greeting => greeting ++ \" to you\")\n\nassert_eq(mappedArray, [\"Hello to you\", \"Hi to you\", \"Good bye to you\"])\n```\n"}
"documentation": {"kind": "markdown", "value": "\n`map(array, fn)` returns a new array with all elements from `array`, each element transformed using the provided `fn`.\n\nSee [`Array.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) on MDN.\n\n## Examples\n\n```rescript\nlet array = [\"Hello\", \"Hi\", \"Good bye\"]\nlet mappedArray = array->Array.map(greeting => greeting ++ \" to you\")\n\nassertEqual(mappedArray, [\"Hello to you\", \"Hi to you\", \"Good bye to you\"])\n```\n"}
}],
"activeSignature": 0,
"activeParameter": 1
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/src/test_pervasive.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ let Pervasives$1 = {
int_of_string_opt: Pervasives.int_of_string_opt,
$at: Pervasives.$at,
panic: Pervasives.panic,
assert_eq: Pervasives.assert_eq
assertEqual: Pervasives.assertEqual
};

function a0(prim) {
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/src/test_pervasives3.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let Pervasives$1 = {
int_of_string_opt: Pervasives.int_of_string_opt,
$at: Pervasives.$at,
panic: Pervasives.panic,
assert_eq: Pervasives.assert_eq,
assertEqual: Pervasives.assertEqual,
length: Belt_List.length,
size: Belt_List.size,
head: Belt_List.head,
Expand Down

0 comments on commit 500e714

Please sign in to comment.