Sha256: 3c272d38dfa09cf3f98664245ef508732050c2372cc6dd2b17998f9f746c2ab4

Contents?: true

Size: 607 Bytes

Versions: 6

Compression:

Stored size: 607 Bytes

Contents

require_relative "test_helper"

class TerminalTest < Minitest::Test
  include TestHelper

  def test_handles_nil
    @wrapper = GLI::Commands::HelpModules::VerbatimWrapper.new(rand(100),rand(100))
    @result = @wrapper.wrap(nil)
    assert_equal '',@result
  end

  def test_does_not_touch_input
    @wrapper = GLI::Commands::HelpModules::VerbatimWrapper.new(rand(100),rand(100))
    @input = <<EOS
      |This is|an ASCII|table|
      +-------+--------+-----+
      | foo   |  bar   | baz |
      +-------+--------+-----+
EOS
    @result = @wrapper.wrap(@input)
    assert_equal @input,@result
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gli-2.22.1 test/unit/verbatim_wrapper_test.rb
gli-2.22.0 test/unit/verbatim_wrapper_test.rb
gli-2.21.5 test/unit/verbatim_wrapper_test.rb
gli-2.21.4 test/unit/verbatim_wrapper_test.rb
gli-2.21.3 test/unit/verbatim_wrapper_test.rb
gli-2.21.2 test/unit/verbatim_wrapper_test.rb