spec/regexp-examples_spec.rb in regexp-examples-0.2.0 vs spec/regexp-examples_spec.rb in regexp-examples-0.2.1

- old
+ new

@@ -1,6 +1,6 @@ -describe Regexp, "#examples" do +RSpec.describe Regexp, "#examples" do def self.examples_exist_and_match(*regexps) regexps.each do |regexp| it do regexp_examples = regexp.examples expect(regexp_examples).not_to be_empty @@ -68,11 +68,16 @@ end context "for escaped characters" do examples_exist_and_match( /\w/, + /\W/, /\s/, + /\S/, /\d/, + /\D/, + /\h/, + /\H/, /\t/, /\n/, /\f/, /\a/, /\v/,