From 589efd588dbcb99894eac4068e0fe7f9341ba4ea Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Sat, 4 Nov 2023 13:58:28 -0600 Subject: [PATCH] chore: maybe fix the build? --- __tests__/Relude_IO_test.re | 30 ++++++++++++++--------------- __tests__/Relude_Option_test.re | 12 ++++++------ __tests__/Relude_Result_test.re | 8 ++++---- __tests__/Relude_Validation_test.re | 12 ++++++------ 4 files changed, 31 insertions(+), 31 deletions(-) diff --git a/__tests__/Relude_IO_test.re b/__tests__/Relude_IO_test.re index eec0ad09..d79bd46c 100644 --- a/__tests__/Relude_IO_test.re +++ b/__tests__/Relude_IO_test.re @@ -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")), ) ); @@ -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")), ) ); @@ -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")), ) ); @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/__tests__/Relude_Option_test.re b/__tests__/Relude_Option_test.re index 8bd193c8..7e3821eb 100644 --- a/__tests__/Relude_Option_test.re +++ b/__tests__/Relude_Option_test.re @@ -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)) => { @@ -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); }, ); diff --git a/__tests__/Relude_Result_test.re b/__tests__/Relude_Result_test.re index 543b6a1c..869ee15b 100644 --- a/__tests__/Relude_Result_test.re +++ b/__tests__/Relude_Result_test.re @@ -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"))) @@ -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"))) @@ -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"))) @@ -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"))) diff --git a/__tests__/Relude_Validation_test.re b/__tests__/Relude_Validation_test.re index e3dac2cd..041ff112 100644 --- a/__tests__/Relude_Validation_test.re +++ b/__tests__/Relude_Validation_test.re @@ -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"), @@ -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,