Sha256: 1fb015f88fa8042daf525b2331de6146a223b84b7bf88bd6bb9d0407155c86c9

Contents?: true

Size: 543 Bytes

Versions: 24

Compression:

Stored size: 543 Bytes

Contents

require File.expand_path(__FILE__).sub(%r(/test/.*), '/test/test_helper.rb')
require File.expand_path(__FILE__).sub(%r(.*/test/), '').sub(/test_(.*)\.rb/,'\1')

class TestSimpleOptDoc < Test::Unit::TestCase
  def test_input_format
    assert_match 'default: :def', SOPT.input_format(:name, :type, :def, :n)
  end
  def test_input_doc
    inputs =<<-EOF.split("\n").collect{|l| l.split(" ") }
input1 integer Integer_input 10 i1
input2 float Float_input 0.2 i2
    EOF
    assert SOPT.input_array_doc(inputs).include?('-i1,--input1')
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
scout-essentials-1.6.8 test/scout/simple_opt/test_doc.rb
scout-essentials-1.6.7 test/scout/simple_opt/test_doc.rb
scout-essentials-1.6.6 test/scout/simple_opt/test_doc.rb
scout-essentials-1.6.5 test/scout/simple_opt/test_doc.rb
scout-essentials-1.6.4 test/scout/simple_opt/test_doc.rb
scout-essentials-1.6.3 test/scout/simple_opt/test_doc.rb
scout-essentials-1.6.2 test/scout/simple_opt/test_doc.rb
scout-essentials-1.6.1 test/scout/simple_opt/test_doc.rb
scout-essentials-1.6.0 test/scout/simple_opt/test_doc.rb
scout-essentials-1.3.1 test/scout/simple_opt/test_doc.rb
scout-essentials-1.3.0 test/scout/simple_opt/test_doc.rb
scout-essentials-1.2.0 test/scout/simple_opt/test_doc.rb
scout-essentials-1.1.1 test/scout/simple_opt/test_doc.rb
scout-essentials-1.1.0 test/scout/simple_opt/test_doc.rb
scout-essentials-1.0.0 test/scout/simple_opt/test_doc.rb
scout-gear-9.1.0 test/scout/simple_opt/test_doc.rb
scout-gear-9.0.0 test/scout/simple_opt/test_doc.rb
scout-gear-8.1.0 test/scout/simple_opt/test_doc.rb
scout-gear-8.0.0 test/scout/simple_opt/test_doc.rb
scout-gear-7.3.0 test/scout/simple_opt/test_doc.rb