Skip to content

Commit

Permalink
Add an emoji to the string to be safe
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Apr 13, 2024
1 parent 7bf744c commit 4246588
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Unit/TokenizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TokenizerTest extends TestCase
{
public function test_it_can_tokenize_ansi(): void
{
$parser = new Tokenizer("Hello \e[3mworld");
$parser = new Tokenizer("Hello \e[3mworld 😎");

$expected = [
new Text('H'),
Expand All @@ -27,6 +27,8 @@ public function test_it_can_tokenize_ansi(): void
new Text('r'),
new Text('l'),
new Text('d'),
new Text(' '),
new Text('😎'),
];

$this->assertParsedTo($expected, $parser->parse());
Expand Down

0 comments on commit 4246588

Please sign in to comment.