Skip to content

Commit

Permalink
Add test shouldAcceptBackslashBeforeSpaceExtended()
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Jun 30, 2023
1 parent e715b24 commit 6814d15
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/Feature/CleanRegex/_trailing_backslash/PatternTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,15 @@ public function shouldAcceptEscapedTrailingBashslash()
// then
$this->assertConsumesFirst('foo\\', $pattern);
}

/**
* @test
*/
public function shouldAcceptBackslashBeforeSpaceExtended()
{
// when
$pattern = Pattern::of('foo\ ', 'x');
// then
$this->assertConsumesFirst('foo ', $pattern);
}
}

0 comments on commit 6814d15

Please sign in to comment.