Sha256: af8e9a48c6a3b017330689d115bd579fbab1268870f962a3ba52001bdfdeaee9

Contents?: true

Size: 826 Bytes

Versions: 6

Compression:

Stored size: 826 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe 'Rubymisc::Regex::Manual' do
  specify '.man' do
    Rubymisc::Regex.man.should be_start_with <<-EOS
Ruby character representations
------------------------------
  Sequence        Meaning
  \\a              Alert (bell), \\x07.
  \\b              Backspace, \\x08, supported only in character class.
  \\e              ESC character, \\x1B.
  \\n              Newline, \\x0A.
  \\r              Carriage return, \\x0D.
  \\f              Form feed, \\x0C.
  \\t              Horizontal tab \\x09.
  \\v              Vertical tab, \\x0B.
  \\0octal         Character specified by a two-digit octal code.
  \\xhex           Character specified by a two-digit hexadecimal code.
  \\cchar          Named control character.
    EOS

    puts "\n" + Rubymisc::Regex.man
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubymisc-0.0.3.3 spec/rubymisc/regex/manual_spec.rb
rubymisc-0.0.3.2 spec/rubymisc/regex/manual_spec.rb
rubymisc-0.0.3.1 spec/rubymisc/regex/manual_spec.rb
rubymisc-0.0.3 spec/rubymisc/regex/manual_spec.rb
rubymisc-0.0.2 spec/rubymisc/regex/manual_spec.rb
rubymisc-0.0.1 spec/rubymisc/regex/manual_spec.rb