Sha256: 711595f32c63662205aaba565678992d5db503a1dee709f0d41328bcc294789c
Contents?: true
Size: 975 Bytes
Versions: 51
Compression:
Stored size: 975 Bytes
Contents
require 'spec_helper' RSpec.describe('CharacterType parsing') do include_examples 'parse', /a\dc/, 1 => [:type, :digit, CharacterType::Digit] include_examples 'parse', /a\Dc/, 1 => [:type, :nondigit, CharacterType::NonDigit] include_examples 'parse', /a\sc/, 1 => [:type, :space, CharacterType::Space] include_examples 'parse', /a\Sc/, 1 => [:type, :nonspace, CharacterType::NonSpace] include_examples 'parse', /a\hc/, 1 => [:type, :hex, CharacterType::Hex] include_examples 'parse', /a\Hc/, 1 => [:type, :nonhex, CharacterType::NonHex] include_examples 'parse', /a\wc/, 1 => [:type, :word, CharacterType::Word] include_examples 'parse', /a\Wc/, 1 => [:type, :nonword, CharacterType::NonWord] include_examples 'parse', 'a\\Rc', 1 => [:type, :linebreak, CharacterType::Linebreak] include_examples 'parse', 'a\\Xc', 1 => [:type, :xgrapheme, CharacterType::ExtendedGrapheme] end
Version data entries
51 entries across 38 versions & 10 rubygems