Skip to content

Commit 8330c82

Browse files
committed
1 parent cb2190e commit 8330c82

File tree

4 files changed

+198
-1568
lines changed

4 files changed

+198
-1568
lines changed

.idea/reason.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__tests__/Relude_Ior_test.res

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -163,55 +163,55 @@ describe("Ior", () => {
163163
})
164164

165165
test("map2 This This", () =>
166-
expect(Ior.map2(\"^", (a, b) => a + b, This(1), This(2)))->toEqual(This(3))
166+
expect(Ior.map2(\"++", (a, b) => a + b, This(1), This(2)))->toEqual(This(3))
167167
)
168168

169169
test("map2 This That", () =>
170-
expect(Ior.map2(\"^", (a, b) => a + b, This(1), That("W2")))->toEqual(That("W2"))
170+
expect(Ior.map2(\"++", (a, b) => a + b, This(1), That("W2")))->toEqual(That("W2"))
171171
)
172172

173173
test("map2 This Both", () =>
174-
expect(Ior.map2(\"^", (a, b) => a + b, This(1), Both(2, "W2")))->toEqual(Both(3, "W2"))
174+
expect(Ior.map2(\"++", (a, b) => a + b, This(1), Both(2, "W2")))->toEqual(Both(3, "W2"))
175175
)
176176

177177
test("map2 That This", () =>
178-
expect(Ior.map2(\"^", (a, b) => a + b, That("W1"), This(1)))->toEqual(That("W1"))
178+
expect(Ior.map2(\"++", (a, b) => a + b, That("W1"), This(1)))->toEqual(That("W1"))
179179
)
180180

181181
test("map2 That That", () =>
182-
expect(Ior.map2(\"^", (a, b) => a + b, That("W1"), That("W2")))->toEqual(That("W1W2"))
182+
expect(Ior.map2(\"++", (a, b) => a + b, That("W1"), That("W2")))->toEqual(That("W1W2"))
183183
)
184184

185185
test("map2 That Both", () =>
186-
expect(Ior.map2(\"^", (a, b) => a + b, That("W1"), Both(1, "W2")))->toEqual(That("W1W2"))
186+
expect(Ior.map2(\"++", (a, b) => a + b, That("W1"), Both(1, "W2")))->toEqual(That("W1W2"))
187187
)
188188

189189
test("map2 Both This", () =>
190-
expect(Ior.map2(\"^", (a, b) => a + b, Both(1, "W1"), This(2)))->toEqual(Both(3, "W1"))
190+
expect(Ior.map2(\"++", (a, b) => a + b, Both(1, "W1"), This(2)))->toEqual(Both(3, "W1"))
191191
)
192192

193193
test("map2 Both That", () =>
194-
expect(Ior.map2(\"^", (a, b) => a + b, Both(1, "W1"), That("W2")))->toEqual(That("W1W2"))
194+
expect(Ior.map2(\"++", (a, b) => a + b, Both(1, "W1"), That("W2")))->toEqual(That("W1W2"))
195195
)
196196

197197
test("map2 Both Both", () =>
198-
expect(Ior.map2(\"^", (a, b) => a + b, Both(1, "W1"), Both(2, "W2")))->toEqual(Both(3, "W1W2"))
198+
expect(Ior.map2(\"++", (a, b) => a + b, Both(1, "W1"), Both(2, "W2")))->toEqual(Both(3, "W1W2"))
199199
)
200200

201201
test("map3 This This This", () =>
202-
expect(Ior.map3(\"^", (a, b, c) => a + b + c, This(1), This(2), This(3)))->toEqual(This(6))
202+
expect(Ior.map3(\"++", (a, b, c) => a + b + c, This(1), This(2), This(3)))->toEqual(This(6))
203203
)
204204

205205
test("map4 This This This This", () =>
206206
expect(
207-
Ior.map4(\"^", (a, b, c, d) => a + b + c + d, This(1), This(2), This(3), This(4)),
207+
Ior.map4(\"++", (a, b, c, d) => a + b + c + d, This(1), This(2), This(3), This(4)),
208208
)->toEqual(This(10))
209209
)
210210

211211
test("map5 This This This This This", () =>
212212
expect(
213213
Ior.map5(
214-
\"^",
214+
\"++",
215215
(a, b, c, d, f) => a + b + c + d + f,
216216
This(1),
217217
This(2),

rescript.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"@glennsl/rescript-jest"
2828
],
2929
"warnings": {
30-
"number": "+A-4-29-40-42-60",
31-
"error": "+A-3"
30+
"number": "+A-4-29-40-42-60+102",
31+
"error": "+A-3-102"
3232
},
3333
"refmt": 3,
3434
"ppx-flags": [

0 commit comments

Comments
 (0)