Skip to content

Commit

Permalink
updated for gleam 0.32
Browse files Browse the repository at this point in the history
  • Loading branch information
massivefermion committed Nov 2, 2023
1 parent e2b29a4 commit 6723b5c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 27 deletions.
7 changes: 4 additions & 3 deletions gleam.toml
Original file line number Diff line number Diff line change
@@ -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"
8 changes: 4 additions & 4 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
24 changes: 4 additions & 20 deletions test/ranger_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6723b5c

Please sign in to comment.