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.6.56 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.54 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.53 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.52 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.51 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.50 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.49 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.48 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.47 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.46 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.45 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.44 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.43 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.42 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.41 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.40 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.39 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.38 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.37 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.36 test/lib/vedeu/esc/borders_test.rb