Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Commit 9e84ba9

Browse files
committed
Check in new test changes from last commit
1 parent bdd1578 commit 9e84ba9

File tree

3 files changed

+36
-9
lines changed

3 files changed

+36
-9
lines changed

test/expected.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
"kind": 12,
55
"tags": [],
66
"detail": "(t<'a>, 'a => 'b) => t<'b>",
7-
"documentation": {"kind": "markdown", "value": "`mapReverse xs f`\n\nEquivalent to `reverse (map xs f)`\n\n```ml\n\nmapReverse [3;4;5] (fun x -> x * x) = [25;16;9];;\n```\n\n\n\nbelt_List.mli:299"}
7+
"documentation": {"kind": "markdown", "value": "`mapReverse xs f`\n\nEquivalent to `reverse (map xs f)`\n\n```ml\nmapReverse [3;4;5] (fun x -> x * x) = [25;16;9];;\n```\n\n\n\nbelt_List.mli:299"}
88
}, {
99
"label": "makeBy",
1010
"kind": 12,
1111
"tags": [],
1212
"detail": "(int, int => 'a) => t<'a>",
13-
"documentation": {"kind": "markdown", "value": "`makeBy n f`\n\n- return a list of length `n` with element `i` initialized with `f i`\n\n\n- return the empty list if `n` is negative\n\n\n\n```ml\n\nmakeBy 5 (fun i -> i) = [0;1;2;3;4];;\nmakeBy 5 (fun i -> i * i) = [0;1;4;9;16];;\n```\n\n\n\nbelt_List.mli:127"}
13+
"documentation": {"kind": "markdown", "value": "`makeBy n f`\n\n- return a list of length `n` with element `i` initialized with `f i`\n\n\n- return the empty list if `n` is negative\n\n\n\n```ml\nmakeBy 5 (fun i -> i) = [0;1;2;3;4];;\nmakeBy 5 (fun i -> i * i) = [0;1;4;9;16];;\n```\n\n\n\nbelt_List.mli:127"}
1414
}, {
1515
"label": "make",
1616
"kind": 12,
1717
"tags": [],
1818
"detail": "(int, 'a) => t<'a>",
19-
"documentation": {"kind": "markdown", "value": "`make n v`\n\n- return a list of length `n` with each element filled with value `v`\n\n\n- return the empty list if `n` is negative\n\n\n\n```ml\n\nmake 3 1 = [1;1;1]\n```\n\n\n\nbelt_List.mli:115"}
19+
"documentation": {"kind": "markdown", "value": "`make n v`\n\n- return a list of length `n` with each element filled with value `v`\n\n\n- return the empty list if `n` is negative\n\n\n\n```ml\nmake 3 1 = [1;1;1]\n```\n\n\n\nbelt_List.mli:115"}
2020
}, {
2121
"label": "mapReverse2U",
2222
"kind": 12,
@@ -28,7 +28,7 @@
2828
"kind": 12,
2929
"tags": [],
3030
"detail": "(t<'a>, 'a => 'b) => t<'b>",
31-
"documentation": {"kind": "markdown", "value": "`map xs f`\n\nreturn the list obtained by applying `f` to each element of `xs`\n\n```ml\n\nmap [1;2] (fun x-> x + 1) = [3;4]\n```\n\n\n\nbelt_List.mli:222"}
31+
"documentation": {"kind": "markdown", "value": "`map xs f`\n\nreturn the list obtained by applying `f` to each element of `xs`\n\n```ml\nmap [1;2] (fun x-> x + 1) = [3;4]\n```\n\n\n\nbelt_List.mli:222"}
3232
}, {
3333
"label": "mapWithIndexU",
3434
"kind": 12,
@@ -52,13 +52,13 @@
5252
"kind": 12,
5353
"tags": [],
5454
"detail": "(t<'a>, t<'b>, ('a, 'b) => 'c) => t<'c>",
55-
"documentation": {"kind": "markdown", "value": "`mapReverse2 xs ys f`\n\nequivalent to `reverse (zipBy xs ys f)`\n\n```ml\n\nmapReverse2 [1;2;3] [1;2] (+) = [4;2]\n```\n\n\n\nbelt_List.mli:392"}
55+
"documentation": {"kind": "markdown", "value": "`mapReverse2 xs ys f`\n\nequivalent to `reverse (zipBy xs ys f)`\n\n```ml\nmapReverse2 [1;2;3] [1;2] (+) = [4;2]\n```\n\n\n\nbelt_List.mli:392"}
5656
}, {
5757
"label": "mapWithIndex",
5858
"kind": 12,
5959
"tags": [],
6060
"detail": "(t<'a>, (int, 'a) => 'b) => t<'b>",
61-
"documentation": {"kind": "markdown", "value": "`mapWithIndex xs f` applies `f` to each element of `xs`. Function `f` takes two arguments: the index starting from 0 and the element from `xs`.\n\n```ml\n\nmapWithIndex [1;2;3] (fun i x -> i + x) =\n[0 + 1; 1 + 2; 2 + 3 ]\n```\n\n\n\nbelt_List.mli:259"}
61+
"documentation": {"kind": "markdown", "value": "`mapWithIndex xs f` applies `f` to each element of `xs`. Function `f` takes two arguments: the index starting from 0 and the element from `xs`.\n\n```ml\nmapWithIndex [1;2;3] (fun i x -> i + x) =\n[0 + 1; 1 + 2; 2 + 3 ]\n```\n\n\n\nbelt_List.mli:259"}
6262
}, {
6363
"label": "mapReverseU",
6464
"kind": 12,

test/package-lock.json

Lines changed: 28 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"dependencies": {
3-
"rescript": "9.1.0",
4-
"reason-react": "^0.9.1"
3+
"reason-react": "^0.9.1",
4+
"rescript": "9.1.0"
55
},
66
"scripts": {
77
"build": "bsb -make-world",

0 commit comments

Comments
 (0)