Skip to content

Commit

Permalink
feature/compress-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Raul Mauricio Uñate Castro committed Jul 6, 2024
1 parent 61b0106 commit e79d9bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/Support/SupportStrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public function testConvertCase()
public function testCompress()
{
// Example input: a JSON message repeated many times
$exampleInput = json_encode(['message' => Str::repeat('Laravel Framework', 2000)]);
$exampleInput = json_encode(['message' => Str::repeat('Laravel Framework', 20)]);

// Compress the input
$valueCompressed = Str::compress($exampleInput);
Expand All @@ -418,7 +418,7 @@ public function testCompress()
public function testDecompress()
{
// Example input: a JSON message repeated many times
$exampleInput = json_encode(['message' => Str::repeat('Laravel Framework', 2000)]);
$exampleInput = json_encode(['message' => Str::repeat('Laravel Framework', 20)]);

// Compress the input to prepare for decompression test
$valueCompressed = Str::compress($exampleInput);
Expand Down
4 changes: 2 additions & 2 deletions tests/Support/SupportStringableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ public function testContainsAll()
public function testCompress()
{
// Example input: a JSON message repeated many times
$exampleInput = $this->stringable(json_encode(['message' => $this->stringable('Laravel Framework')->repeat(2000)]));
$exampleInput = $this->stringable(json_encode(['message' => str_repeat('Laravel Framework', 20)]));

// Compress the input
$valueCompressed = $exampleInput->compress();
Expand All @@ -731,7 +731,7 @@ public function testCompress()
public function testDecompress()
{
// Example input: a JSON message repeated many times
$exampleInput = $this->stringable(json_encode(['message' => $this->stringable('Laravel Framework')->repeat(2000)]));
$exampleInput = $this->stringable(json_encode(['message' => str_repeat('Laravel Framework', 20)]));

// Compress the input to prepare for decompression test
$valueCompressed = $exampleInput->compress();
Expand Down

0 comments on commit e79d9bb

Please sign in to comment.