Sha256: 07eead96400f99807ffe9e45fc71a91e0aafdc33386795d86873f203d1357973
Contents?: true
Size: 648 Bytes
Versions: 16
Compression:
Stored size: 648 Bytes
Contents
require 'spec_helper' RSpec.describe(Regexp::Expression::FreeSpace) do specify('white space quantify raises error') do regexp = / a # Comment /x root = RP.parse(regexp) space = root[0] expect(space).to be_instance_of(FreeSpace::WhiteSpace) expect { space.quantify(:dummy, '#') }.to raise_error(Regexp::Parser::Error) end specify('comment quantify raises error') do regexp = / a # Comment /x root = RP.parse(regexp) comment = root[3] expect(comment).to be_instance_of(FreeSpace::Comment) expect { comment.quantify(:dummy, '#') }.to raise_error(Regexp::Parser::Error) end end
Version data entries
16 entries across 12 versions & 6 rubygems