spec/regexp-examples_spec.rb in regexp-examples-1.0.0 vs spec/regexp-examples_spec.rb in regexp-examples-1.0.1
- old
+ new
@@ -78,10 +78,12 @@
/[\]]/,
/[\\]/,
/[\\\]]/,
/[\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
/[[[[abc]]]]/,
/[[a][b][c]]/,
@@ -178,10 +180,12 @@
context "for named properties" do
examples_exist_and_match(
/\p{L}/,
/\p{Space}/,
/\p{AlPhA}/, # Checking case insensitivity
- /\p{^Ll}/
+ /\p{^Ll}/,
+ /\P{Ll}/,
+ /\P{^Ll}/ # Double negative!!
)
end
context "for control characters" do