Skip to content

Commit

Permalink
0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Dec 21, 2023
1 parent b3fc268 commit b6646ef
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 11 deletions.
6 changes: 6 additions & 0 deletions Changes
Expand Up @@ -2,6 +2,12 @@ Revision history for Array-Sparse

{{$NEXT}}

0.0.9 2023-12-21T11:39:14+01:00
- Up dependency on Array::Agnostic
- Use .rakutest extension for tests
- Add sponsor link
- Update copyright year

0.0.8 2021-09-10T10:38:21+02:00
- Change file extension to .rakumod
- Migrate to zef ecosystem
Expand Down
4 changes: 2 additions & 2 deletions META6.json
Expand Up @@ -6,7 +6,7 @@
"build-depends": [
],
"depends": [
"Array::Agnostic:ver<0.0.10>:auth<zef:lizmat>"
"Array::Agnostic:ver<0.0.11>:auth<zef:lizmat>"
],
"description": "role for sparsely populated Arrays",
"license": "Artistic-2.0",
Expand All @@ -23,5 +23,5 @@
],
"test-depends": [
],
"version": "0.0.8"
"version": "0.0.9"
}
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -33,10 +33,12 @@ Elizabeth Mattijsen <liz@raku.rocks>

Source can be located at: https://github.com/lizmat/Array-Sparse . Comments and Pull Requests are welcome.

If you like this module, or what I’m doing more generally, committing to a [small sponsorship](https://github.com/sponsors/lizmat/) would mean a great deal to me!

COPYRIGHT AND LICENSE
=====================

Copyright 2018, 2020, 2021 Elizabeth Mattijsen
Copyright 2018, 2020, 2021, 2023 Elizabeth Mattijsen

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

12 changes: 7 additions & 5 deletions lib/Array/Sparse.rakumod
@@ -1,10 +1,8 @@
use v6.d;

use Array::Agnostic:ver<0.0.10>:auth<zef:lizmat>;
use Array::Agnostic:ver<0.0.11>:auth<zef:lizmat>;

role Array::Sparse:ver<0.0.8>:auth<zef:lizmat>
does Array::Agnostic
{
role Array::Sparse does Array::Agnostic {
has %!sparse;
has $.end = -1;

Expand Down Expand Up @@ -180,9 +178,13 @@ Elizabeth Mattijsen <liz@raku.rocks>
Source can be located at: https://github.com/lizmat/Array-Sparse .
Comments and Pull Requests are welcome.
If you like this module, or what I’m doing more generally, committing to a
L<small sponsorship|https://github.com/sponsors/lizmat/> would mean a great
deal to me!
=head1 COPYRIGHT AND LICENSE
Copyright 2018, 2020, 2021 Elizabeth Mattijsen
Copyright 2018, 2020, 2021, 2023 Elizabeth Mattijsen
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.
Expand Down
9 changes: 6 additions & 3 deletions t/01-basic.t → t/01-basic.rakutest
Expand Up @@ -34,12 +34,15 @@ subtest {
}, 'checking [* - x]';

subtest {
plan 5;
plan 8;
ok @a[9]:exists, 'does last element exist';
is @a[9]:delete, 10, 'does :delete work on last element';
nok @a[9]:exists, 'does last element no longer exist';
is @a.elems, 9, 'do we have one element less now: elems';
is @a.end, 8, 'do we have one element less now: end';
is-deeply @a.elems, 9, 'do we have one element less now: elems';
is-deeply @a.end, 8, 'do we have one element less now: end';
is-deeply +@a, 9, 'does it numerify ok';
is-deeply @a.Int, 9, 'does it intify ok';
is-deeply ?@a, True, 'does it boolify ok';
}, 'deletion of last element';

subtest {
Expand Down

0 comments on commit b6646ef

Please sign in to comment.