Skip to content

Commit 500e714

Browse files
committed
update tests
1 parent 01dfa5a commit 500e714

File tree

7 files changed

+96
-96
lines changed

7 files changed

+96
-96
lines changed

tests/analysis_tests/tests/src/expected/Completion.res.txt

Lines changed: 67 additions & 67 deletions
Large diffs are not rendered by default.

tests/analysis_tests/tests/src/expected/CompletionInferValues.res.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ Path Belt.Int.f
1515
"kind": 12,
1616
"tags": [],
1717
"detail": "string => option<int>",
18-
"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"}
18+
"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"}
1919
}, {
2020
"label": "Belt.Int.fromFloat",
2121
"kind": 12,
2222
"tags": [],
2323
"detail": "float => int",
24-
"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"}
24+
"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"}
2525
}]
2626

2727
Complete src/CompletionInferValues.res 18:30
@@ -244,13 +244,13 @@ Path Belt.Int.t
244244
"kind": 12,
245245
"tags": [],
246246
"detail": "int => string",
247-
"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"}
247+
"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"}
248248
}, {
249249
"label": "Belt.Int.toFloat",
250250
"kind": 12,
251251
"tags": [],
252252
"detail": "int => float",
253-
"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"}
253+
"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"}
254254
}]
255255

256256
Complete src/CompletionInferValues.res 50:108
@@ -473,7 +473,7 @@ Path Belt.Int.toS
473473
"kind": 12,
474474
"tags": [],
475475
"detail": "int => string",
476-
"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"}
476+
"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"}
477477
}]
478478

479479
Complete src/CompletionInferValues.res 98:109
@@ -498,7 +498,7 @@ Path Belt.Int.toS
498498
"kind": 12,
499499
"tags": [],
500500
"detail": "int => string",
501-
"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"}
501+
"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"}
502502
}]
503503

504504
Complete src/CompletionInferValues.res 102:102
@@ -524,7 +524,7 @@ Path Belt.Int.toS
524524
"kind": 12,
525525
"tags": [],
526526
"detail": "int => string",
527-
"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"}
527+
"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"}
528528
}]
529529

530530
Complete src/CompletionInferValues.res 106:88
@@ -656,7 +656,7 @@ Path Belt.Int.toSt
656656
"kind": 12,
657657
"tags": [],
658658
"detail": "int => string",
659-
"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"}
659+
"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"}
660660
}]
661661

662662
Complete src/CompletionInferValues.res 130:26

tests/analysis_tests/tests/src/expected/CompletionJsx.res.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -230,49 +230,49 @@ Path Belt.Int.
230230
"kind": 12,
231231
"tags": [],
232232
"detail": "string => option<int>",
233-
"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"}
233+
"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"}
234234
}, {
235235
"label": "Belt.Int.*",
236236
"kind": 12,
237237
"tags": [],
238238
"detail": "(int, int) => int",
239-
"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"}
239+
"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"}
240240
}, {
241241
"label": "Belt.Int./",
242242
"kind": 12,
243243
"tags": [],
244244
"detail": "(int, int) => int",
245-
"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"}
245+
"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"}
246246
}, {
247247
"label": "Belt.Int.toString",
248248
"kind": 12,
249249
"tags": [],
250250
"detail": "int => string",
251-
"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"}
251+
"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"}
252252
}, {
253253
"label": "Belt.Int.toFloat",
254254
"kind": 12,
255255
"tags": [],
256256
"detail": "int => float",
257-
"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"}
257+
"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"}
258258
}, {
259259
"label": "Belt.Int.fromFloat",
260260
"kind": 12,
261261
"tags": [],
262262
"detail": "float => int",
263-
"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"}
263+
"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"}
264264
}, {
265265
"label": "Belt.Int.-",
266266
"kind": 12,
267267
"tags": [],
268268
"detail": "(int, int) => int",
269-
"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"}
269+
"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"}
270270
}, {
271271
"label": "Belt.Int.+",
272272
"kind": 12,
273273
"tags": [],
274274
"detail": "(int, int) => int",
275-
"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"}
275+
"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"}
276276
}]
277277

278278
Complete src/CompletionJsx.res 26:14
@@ -310,49 +310,49 @@ Path Belt.Int.
310310
"kind": 12,
311311
"tags": [],
312312
"detail": "string => option<int>",
313-
"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"}
313+
"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"}
314314
}, {
315315
"label": "Belt.Int.*",
316316
"kind": 12,
317317
"tags": [],
318318
"detail": "(int, int) => int",
319-
"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"}
319+
"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"}
320320
}, {
321321
"label": "Belt.Int./",
322322
"kind": 12,
323323
"tags": [],
324324
"detail": "(int, int) => int",
325-
"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"}
325+
"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"}
326326
}, {
327327
"label": "Belt.Int.toString",
328328
"kind": 12,
329329
"tags": [],
330330
"detail": "int => string",
331-
"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"}
331+
"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"}
332332
}, {
333333
"label": "Belt.Int.toFloat",
334334
"kind": 12,
335335
"tags": [],
336336
"detail": "int => float",
337-
"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"}
337+
"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"}
338338
}, {
339339
"label": "Belt.Int.fromFloat",
340340
"kind": 12,
341341
"tags": [],
342342
"detail": "float => int",
343-
"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"}
343+
"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"}
344344
}, {
345345
"label": "Belt.Int.-",
346346
"kind": 12,
347347
"tags": [],
348348
"detail": "(int, int) => int",
349-
"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"}
349+
"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"}
350350
}, {
351351
"label": "Belt.Int.+",
352352
"kind": 12,
353353
"tags": [],
354354
"detail": "(int, int) => int",
355-
"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"}
355+
"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"}
356356
}]
357357

358358
Complete src/CompletionJsx.res 28:20

tests/analysis_tests/tests/src/expected/CompletionPipeChain.res.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,13 @@ Path Belt.Int.t
351351
"kind": 12,
352352
"tags": [],
353353
"detail": "int => string",
354-
"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"}
354+
"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"}
355355
}, {
356356
"label": "Belt.Int.toFloat",
357357
"kind": 12,
358358
"tags": [],
359359
"detail": "int => float",
360-
"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"}
360+
"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"}
361361
}]
362362

363363
Complete src/CompletionPipeChain.res 70:12

tests/analysis_tests/tests/src/expected/SignatureHelp.res.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ extracted params:
454454
"signatures": [{
455455
"label": "(array<int>, int => int) => array<int>",
456456
"parameters": [{"label": [1, 11], "documentation": {"kind": "markdown", "value": ""}}, {"label": [13, 23], "documentation": {"kind": "markdown", "value": ""}}],
457-
"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"}
457+
"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"}
458458
}],
459459
"activeSignature": 0,
460460
"activeParameter": 1

tests/tests/src/test_pervasive.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ let Pervasives$1 = {
112112
int_of_string_opt: Pervasives.int_of_string_opt,
113113
$at: Pervasives.$at,
114114
panic: Pervasives.panic,
115-
assert_eq: Pervasives.assert_eq
115+
assertEqual: Pervasives.assertEqual
116116
};
117117

118118
function a0(prim) {

tests/tests/src/test_pervasives3.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ let Pervasives$1 = {
2424
int_of_string_opt: Pervasives.int_of_string_opt,
2525
$at: Pervasives.$at,
2626
panic: Pervasives.panic,
27-
assert_eq: Pervasives.assert_eq,
27+
assertEqual: Pervasives.assertEqual,
2828
length: Belt_List.length,
2929
size: Belt_List.size,
3030
head: Belt_List.head,

0 commit comments

Comments
 (0)