Skip to content

Commit

Permalink
Update and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
lunagl committed May 19, 2024
1 parent 66c3916 commit 28b26a7
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 26 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
formatter = pkgs.alejandra;

devShells.default = pkgs.mkShell {
packages = with pkgs; [gleam erlang_26 nodejs-slim_21];
packages = with pkgs; [gleam erlang_26 nodejs-slim_22];
};
}
);
Expand Down
8 changes: 4 additions & 4 deletions gleam.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name = "glearray"
version = "0.2.1"
version = "0.2.2"

description = "Immutable arrays for Gleam"
licences = ["Apache-2.0"]
repository = { type = "github", user = "fschwalbe", repo = "glearray" }
repository = { type = "github", user = "lunagl", repo = "glearray" }
links = []

[dependencies]
gleam_stdlib = "~> 0.32"
gleam_stdlib = "~> 0.37"

[dev-dependencies]
gleeunit = "~> 1.0"
gleeunit = "~> 1.1"
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.33.1", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "3CEAD7B153D896499C78390B22CC968620C27500C922AED3A5DD7B536F922B25" },
{ name = "gleeunit", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D3682ED8C5F9CAE1C928F2506DE91625588CC752495988CBE0F5653A42A6F334" },
{ name = "gleam_stdlib", version = "0.37.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "5398BD6C2ABA17338F676F42F404B9B7BABE1C8DC7380031ACB05BBE1BCF3742" },
{ name = "gleeunit", version = "1.1.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "72CDC3D3F719478F26C4E2C5FED3E657AC81EC14A47D2D2DEBB8693CA3220C3B" },
]

[requirements]
gleam_stdlib = { version = "~> 0.32" }
gleeunit = { version = "~> 1.0" }
gleam_stdlib = { version = "~> 0.37" }
gleeunit = { version = "~> 1.1" }
19 changes: 8 additions & 11 deletions test/glearray_test.gleam
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import gleam/list
import gleam/function
import gleam/result
import gleam/iterator
import gleam/list
import gleam/result
import glearray.{type Array}
import gleeunit
import gleeunit/should
import glearray.{type Array}

pub fn main() {
gleeunit.main()
Expand Down Expand Up @@ -32,14 +32,11 @@ pub fn from_to_list_test() {
pub fn get_test() {
let list = ["a", "B", "fdsau", "rh3892wfd", "äèëå亣"]
let array = glearray.from_list(list)
list.index_map(
list,
fn(index, element) {
array
|> glearray.get(index)
|> should.equal(Ok(element))
},
)
list.index_map(list, fn(element, index) {
array
|> glearray.get(index)
|> should.equal(Ok(element))
})

glearray.get(array, -1)
|> should.be_error
Expand Down

0 comments on commit 28b26a7

Please sign in to comment.