Skip to content

Commit

Permalink
extend Str::take function tests (#48728)
Browse files Browse the repository at this point in the history
  • Loading branch information
salehhashemi1992 authored Oct 16, 2023
1 parent f67c475 commit cdcb9ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Support/SupportStrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,11 @@ public function testTake()
{
$this->assertSame('ab', Str::take('abcdef', 2));
$this->assertSame('ef', Str::take('abcdef', -2));
$this->assertSame('', Str::take('abcdef', 0));
$this->assertSame('', Str::take('', 2));
$this->assertSame('abcdef', Str::take('abcdef', 10));
$this->assertSame('abcdef', Str::take('abcdef', 6));
$this->assertSame('ü', Str::take('üöä', 1));
}

public function testLcfirst()
Expand Down

0 comments on commit cdcb9ca

Please sign in to comment.