Skip to content

Commit

Permalink
Add missing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 26, 2020
1 parent dc8d719 commit 959c981
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/loophp/collection/CollectionSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -1852,6 +1852,14 @@ public function it_can_truthy(): void
$this::fromIterable([true, false, true])
->truthy()
->shouldReturn(false);

$this::fromIterable([1, 2, 3])
->truthy()
->shouldReturn(true);

$this::fromIterable([1, 2, 3, 0])
->truthy()
->shouldReturn(false);
}

public function it_can_unpack(): void
Expand Down Expand Up @@ -1969,6 +1977,10 @@ public function it_can_use_range_with_value_1(): void
{
$this::range(0, 1)
->shouldIterateAs([(float) 0]);

$this::range()
->limit(5)
->shouldIterateAs([(float) 0, (float) 1, (float) 2, (float) 3, (float) 4]);
}

public function it_can_use_times_with_a_callback(): void
Expand Down

0 comments on commit 959c981

Please sign in to comment.