Sha256: 087fa04891d1b5b15972439390b23fb41c9bf68abb09063548d9a43f372b4516
Contents?: true
Size: 375 Bytes
Versions: 830
Compression:
Stored size: 375 Bytes
Contents
require File.join(File.expand_path(File.dirname(__FILE__)), '../../..', 'test_helper.rb') require 'rbbt/util/simpleopt/parse' require 'rbbt/util/simpleopt/get' class TestSOPTParse < Test::Unit::TestCase def test_consume SOPT.parse("-f--first* first arg:-f--fun") args = "-f myfile --fun".split(" ") assert_equal "myfile", SOPT.consume(args)[:first] end end
Version data entries
830 entries across 830 versions & 1 rubygems