Sha256: d28ea2d6b0f593c00680da2d0adeb67c7b180b06ee32817b5880431a488297c6

Contents?: true

Size: 809 Bytes

Versions: 3

Compression:

Stored size: 809 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Rbm::Regex::Manual do
  specify '.man' do
    Rbm::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" + Rbm::Regex.man
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubymisc-0.2.0 spec/rubymisc/regex/manual_spec.rb
rubymisc-0.1.0 spec/rubymisc/regex/manual_spec.rb
rubymisc-0.0.4 spec/rubymisc/regex/manual_spec.rb