Sha256: b8ce43ee0e979580a80192996198c037ba74b4af91e6a779bdb06ca3ef94f0f6

Contents?: true

Size: 1.01 KB

Versions: 56

Compression:

Stored size: 1.01 KB

Contents

require 'test_helper'

module Vedeu

  module EscapeSequences

    describe Borders do

      let(:described) { Vedeu::EscapeSequences::Borders }

      describe 'border methods' do
        it { described.border_on.must_equal("\e(0") }
        it { described.border_off.must_equal("\e(B") }

        it { described.bottom_right.must_equal("\x6A") }
        it { described.top_right.must_equal("\x6B") }
        it { described.top_left.must_equal("\x6C") }
        it { described.bottom_left.must_equal("\x6D") }
        it { described.horizontal.must_equal("\x71") }
        it { described.vertical_left.must_equal("\x74") }
        it { described.vertical_right.must_equal("\x75") }
        it { described.horizontal_bottom.must_equal("\x76") }
        it { described.horizontal_top.must_equal("\x77") }
        it { described.vertical.must_equal("\x78") }
      end

      describe '.characters' do
        it { described.characters.must_be_instance_of(Hash) }
      end

    end # Borders

  end # EscapeSequences

end # Vedeu

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
vedeu-0.7.4 test/lib/vedeu/esc/borders_test.rb
vedeu-0.7.3 test/lib/vedeu/esc/borders_test.rb
vedeu-0.7.2 test/lib/vedeu/esc/borders_test.rb
vedeu-0.7.1 test/lib/vedeu/esc/borders_test.rb
vedeu-0.7.0 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.71 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.70 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.69 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.68 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.67 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.66 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.65 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.64 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.63 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.62 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.61 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.60 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.59 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.58 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.57 test/lib/vedeu/esc/borders_test.rb