From c5c629b871b1db5d372cd126982493e5c9e5c8cc Mon Sep 17 00:00:00 2001 From: Tom Lord Date: Mon, 2 Mar 2015 11:41:10 +0000 Subject: [PATCH] Tested missing edge case in code coverage --- spec/regexp-examples_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/regexp-examples_spec.rb b/spec/regexp-examples_spec.rb index a0f4d2d..6ad3acd 100644 --- a/spec/regexp-examples_spec.rb +++ b/spec/regexp-examples_spec.rb @@ -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