From 6723b5c39441644c568cbfec3eccf6af15227349 Mon Sep 17 00:00:00 2001 From: shayan javani <25373436+massivefermion@users.noreply.github.com> Date: Thu, 2 Nov 2023 15:45:03 +0330 Subject: [PATCH] updated for gleam 0.32 --- gleam.toml | 7 ++++--- manifest.toml | 8 ++++---- test/ranger_test.gleam | 24 ++++-------------------- 3 files changed, 12 insertions(+), 27 deletions(-) diff --git a/gleam.toml b/gleam.toml index 61aa530..39a0a62 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,13 +1,14 @@ name = "ranger" -version = "0.4.0" +version = "0.5.0" description = "create ranges over any type" +gleam = ">= 0.32.0" licences = ["Apache-2.0"] links = [{title = "gleam", href = "https://gleam.run"}] repository = {type = "github", user = "massivefermion", repo = "ranger"} [dependencies] -gleam_stdlib = "~> 0.31" +gleam_stdlib = "~> 0.32" [dev-dependencies] -gleeunit = "~> 0.11" +gleeunit = "~> 1.0" diff --git a/manifest.toml b/manifest.toml index 196686e..34d109a 100644 --- a/manifest.toml +++ b/manifest.toml @@ -2,10 +2,10 @@ # You typically do not need to edit this file packages = [ - { name = "gleam_stdlib", version = "0.31.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "6D1BC5B4D4179B9FEE866B1E69FE180AC2CE485AD90047C0B32B2CA984052736" }, - { name = "gleeunit", version = "0.11.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "1397E5C4AC4108769EE979939AC39BF7870659C5AFB714630DEEEE16B8272AD5" }, + { name = "gleam_stdlib", version = "0.32.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "07D64C26D014CF570F8ACADCE602761EA2E74C842D26F2FD49B0D61973D9966F" }, + { name = "gleeunit", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D3682ED8C5F9CAE1C928F2506DE91625588CC752495988CBE0F5653A42A6F334" }, ] [requirements] -gleam_stdlib = { version = "~> 0.31" } -gleeunit = { version = "~> 0.11" } +gleam_stdlib = { version = "~> 0.32" } +gleeunit = { version = "~> 1.0" } diff --git a/test/ranger_test.gleam b/test/ranger_test.gleam index 7cf16dd..966b3f6 100644 --- a/test/ranger_test.gleam +++ b/test/ranger_test.gleam @@ -20,11 +20,7 @@ pub fn invalid_string_test() { string.from_utf_codepoints([new_code]) }, compare: string.compare, - )( - "ab", - "e", - 1, - ) + )("ab", "e", 1) |> should.be_error } @@ -40,11 +36,7 @@ pub fn a_to_e_test() { string.from_utf_codepoints([new_code]) }, compare: string.compare, - )( - "a", - "e", - -1, - ) + )("a", "e", -1) |> should.be_ok |> ranger.unwrap |> iterator.to_list @@ -63,11 +55,7 @@ pub fn z_to_p_double_step_test() { string.from_utf_codepoints([new_code]) }, compare: string.compare, - )( - "z", - "p", - -2, - ) + )("z", "p", -2) |> should.be_ok |> ranger.unwrap |> iterator.to_list @@ -86,11 +74,7 @@ pub fn z_to_p_triple_step_test() { string.from_utf_codepoints([new_code]) }, compare: string.compare, - )( - "z", - "p", - 3, - ) + )("z", "p", 3) |> should.be_ok |> ranger.unwrap |> iterator.to_list