Skip to content

Commit

Permalink
chore: maybe fix the build?
Browse files Browse the repository at this point in the history
  • Loading branch information
mlms13 committed Nov 4, 2023
1 parent 7baf327 commit 589efd5
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 31 deletions.
30 changes: 15 additions & 15 deletions __tests__/Relude_IO_test.re
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ describe("IO basics", () => {
|> IO.unsafeRunAsync(
fun
| Ok(ior) =>
onDone(expect(ior) |> toEqual(Relude.Ior_Type.Both(42, "a")))
onDone(expect(ior) |> toEqual(Relude.Ior.Both(42, "a")))
| Error(_) => onDone(fail("Fail")),
)
);
Expand All @@ -179,7 +179,7 @@ describe("IO basics", () => {
|> IO.unsafeRunAsync(
fun
| Ok(ior) =>
onDone(expect(ior) |> toEqual(Relude.Ior_Type.This(42)))
onDone(expect(ior) |> toEqual(Relude.Ior.This(42)))
| Error(_) => onDone(fail("Fail")),
)
);
Expand All @@ -189,7 +189,7 @@ describe("IO basics", () => {
|> IO.unsafeRunAsync(
fun
| Ok(ior) =>
onDone(expect(ior) |> toEqual(Relude.Ior_Type.That(99)))
onDone(expect(ior) |> toEqual(Relude.Ior.That(99)))
| Error(_) => onDone(fail("Fail")),
)
);
Expand All @@ -206,9 +206,9 @@ describe("IO basics", () => {
testAsync("alignWith pure pure", onDone => {
let f =
fun
| Relude.Ior_Type.This(a) => a
| Relude.Ior_Type.That(b) => int_of_string(b)
| Relude.Ior_Type.Both(a, b) => a + int_of_string(b);
| Relude.Ior.This(a) => a
| Relude.Ior.That(b) => int_of_string(b)
| Relude.Ior.Both(a, b) => a + int_of_string(b);
IO.alignWith(f, IO.pure(42), IO.pure("99"))
|> IO.unsafeRunAsync(
fun
Expand All @@ -220,9 +220,9 @@ describe("IO basics", () => {
testAsync("alignWith pure throw", onDone => {
let f =
fun
| Relude.Ior_Type.This(a) => a
| Relude.Ior_Type.That(b) => int_of_string(b)
| Relude.Ior_Type.Both(a, b) => a + int_of_string(b);
| Relude.Ior.This(a) => a
| Relude.Ior.That(b) => int_of_string(b)
| Relude.Ior.Both(a, b) => a + int_of_string(b);
IO.alignWith(f, IO.pure(42), IO.throw("e2"))
|> IO.unsafeRunAsync(
fun
Expand All @@ -234,9 +234,9 @@ describe("IO basics", () => {
testAsync("alignWith throw pure", onDone => {
let f =
fun
| Relude.Ior_Type.This(a) => a
| Relude.Ior_Type.That(b) => int_of_string(b)
| Relude.Ior_Type.Both(a, b) => a + int_of_string(b);
| Relude.Ior.This(a) => a
| Relude.Ior.That(b) => int_of_string(b)
| Relude.Ior.Both(a, b) => a + int_of_string(b);
IO.alignWith(f, IO.throw("e1"), IO.pure("99"))
|> IO.unsafeRunAsync(
fun
Expand All @@ -248,9 +248,9 @@ describe("IO basics", () => {
testAsync("alignWith throw throw", onDone => {
let f =
fun
| Relude.Ior_Type.This(a) => a
| Relude.Ior_Type.That(b) => int_of_string(b)
| Relude.Ior_Type.Both(a, b) => a + int_of_string(b);
| Relude.Ior.This(a) => a
| Relude.Ior.That(b) => int_of_string(b)
| Relude.Ior.Both(a, b) => a + int_of_string(b);
IO.alignWith(f, IO.throw("e1"), IO.throw("e2"))
|> IO.unsafeRunAsync(
fun
Expand Down
12 changes: 6 additions & 6 deletions __tests__/Relude_Option_test.re
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ describe("Option", () => {
testAll(
"align",
[
(Some(42), Some("a"), Some(Relude.Ior_Type.Both(42, "a"))),
(Some(42), None, Some(Relude.Ior_Type.This(42))),
(None, Some("a"), Some(Relude.Ior_Type.That("a"))),
(Some(42), Some("a"), Some(Relude.Ior.Both(42, "a"))),
(Some(42), None, Some(Relude.Ior.This(42))),
(None, Some("a"), Some(Relude.Ior.That("a"))),
(None, None, None),
],
((fa, fb, expected)) => {
Expand All @@ -162,9 +162,9 @@ describe("Option", () => {
((fa, fb, expected)) => {
let f =
fun
| Relude.Ior_Type.This(a) => a
| Relude.Ior_Type.That(b) => int_of_string(b)
| Relude.Ior_Type.Both(a, b) => a + int_of_string(b);
| Relude.Ior.This(a) => a
| Relude.Ior.That(b) => int_of_string(b)
| Relude.Ior.Both(a, b) => a + int_of_string(b);
expect(Option.alignWith(f, fa, fb)) |> toEqual(expected);
},
);
Expand Down
8 changes: 4 additions & 4 deletions __tests__/Relude_Result_test.re
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe("Result", () => {
test("alignWith Ok Ok", () => {
let f =
fun
| Relude.Ior_Type.This(a) => a
| Relude.Ior.This(a) => a
| That(b) => int_of_string(b)
| Both(a, b) => a + int_of_string(b);
expect(Result.alignWith(f, Result.ok(42), Result.ok("99")))
Expand All @@ -103,7 +103,7 @@ describe("Result", () => {
test("alignWith Ok Error", () => {
let f =
fun
| Relude.Ior_Type.This(a) => a
| Relude.Ior.This(a) => a
| That(b) => int_of_string(b)
| Both(a, b) => a + int_of_string(b);
expect(Result.alignWith(f, Result.ok(42), Result.error("99")))
Expand All @@ -113,7 +113,7 @@ describe("Result", () => {
test("alignWith Error Ok", () => {
let f =
fun
| Relude.Ior_Type.This(a) => a
| Relude.Ior.This(a) => a
| That(b) => int_of_string(b)
| Both(a, b) => a + int_of_string(b);
expect(Result.alignWith(f, Result.error(42), Result.ok("99")))
Expand All @@ -123,7 +123,7 @@ describe("Result", () => {
test("alignWith Error Ok", () => {
let f =
fun
| Relude.Ior_Type.This(a) => a
| Relude.Ior.This(a) => a
| That(b) => int_of_string(b)
| Both(a, b) => a + int_of_string(b);
expect(Result.alignWith(f, Result.error("a"), Result.error("b")))
Expand Down
12 changes: 6 additions & 6 deletions __tests__/Relude_Validation_test.re
Original file line number Diff line number Diff line change
Expand Up @@ -332,17 +332,17 @@ describe("Validation", () => {
(
Validation.ok(42),
Validation.ok("a"),
Validation.ok(Relude.Ior_Type.Both(42, "a")),
Validation.ok(Relude.Ior.Both(42, "a")),
),
(
Validation.ok(42),
Validation.error("fail2"),
Validation.ok(Relude.Ior_Type.This(42)),
Validation.ok(Relude.Ior.This(42)),
),
(
Validation.error("fail1"),
Validation.ok("a"),
Validation.ok(Relude.Ior_Type.That("a")),
Validation.ok(Relude.Ior.That("a")),
),
(
Validation.error("fail1"),
Expand Down Expand Up @@ -372,9 +372,9 @@ describe("Validation", () => {
((inputA, inputB, expected)) => {
let f =
fun
| Relude.Ior_Type.This(a) => a
| Relude.Ior_Type.That(b) => int_of_string(b)
| Relude.Ior_Type.Both(a, b) => a + int_of_string(b);
| Relude.Ior.This(a) => a
| Relude.Ior.That(b) => int_of_string(b)
| Relude.Ior.Both(a, b) => a + int_of_string(b);
let actual =
Validation.alignWithWithAppendErrors(
(a, b) => a ++ b,
Expand Down

0 comments on commit 589efd5

Please sign in to comment.