Skip to content

Commit

Permalink
Tested missing edge case in code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Lord committed Mar 2, 2015
1 parent caf68ac commit c5c629b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/regexp-examples_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def self.examples_are_empty(*regexps)
/[\\\]]/,
/[\n-\r]/,
/[\-]/,
/[-abc]/,
/[abc-]/,
/[%-+]/, # This regex is "supposed to" match some surprising things!!!
/['-.]/, # Test to ensure no "infinite loop" on character set expansion
/[[abc]]/, # Nested groups
Expand Down

0 comments on commit c5c629b

Please sign in to comment.