/macosx-10.10/ruby-106/ruby/test/rdoc/ |
H A D | test_rdoc_markup_attributes.rb | 31 assert_equal %w[], @as.each_name_of(0).to_a 32 assert_equal %w[], @as.each_name_of(1).to_a 33 assert_equal %w[two], @as.each_name_of(2).to_a 34 assert_equal %w[three], @as.each_name_of(4).to_a 35 assert_equal %w[two three], @as.each_name_of(6).to_a
|
/macosx-10.10/ruby-106/ruby/lib/rubygems/ |
H A D | name_tuple.rb | 35 list.map { |t| t.to_a } 73 def to_a method in class:Gem 82 to_a <=> other.to_a 98 to_a == other 107 to_a.hash
|
H A D | platform.rb | 103 "#<%s:0x%x @cpu=%p, @os=%p, @version=%p>" % [self.class, object_id, *to_a] 106 def to_a method 111 to_a.compact.join '-' 119 self.class === other and to_a == other.to_a 125 to_a.hash
|
H A D | source_list.rb | 59 to_a == other 62 def to_a method 66 alias_method :to_ary, :to_a
|
/macosx-10.10/ruby-106/ruby/lib/rake/ |
H A D | rake_test_loader.rb | 9 FileList[argument].to_a.each do |file|
|
/macosx-10.10/ruby-106/ruby/test/rexml/ |
H A D | test_functions.rb | 33 mailtos = doc.elements.to_a("//a[starts-with(@href, 'mailto:')]") 37 ailtos = doc.elements.to_a("//a[starts-with(@href, 'ailto:')]") 54 set = doc.elements.to_a("//*[string-length(name()) = 3]") 57 set = doc.elements.to_a("//*[string-length(name()) < 3]") 60 set = doc.elements.to_a("//*[string-length(name()) > 3]") 76 set = doc.elements.to_a("//a[contains(@href, '#{search}')]") 97 set = doc.elements.to_a("//test[substring(@string, #{start}, #{length}) = '#{expected}']") 127 set = doc.elements.to_a("//case[@result = #{translate}]") 135 assert_equal 1, d.root.elements.to_a('*[name() = "b"]').size 136 assert_equal 1, d.elements.to_a('//*[nam [all...] |
/macosx-10.10/ruby-106/ruby/test/csv/ |
H A D | test_headers.rb | 36 assert_equal([%w{first A}, %w{second B}, %w{third C}], row.to_a) 42 assert_equal([%w{first 1}, %w{second 2}, %w{third 3}], row.to_a) 61 row.to_a ) 67 assert_equal([[:my, "A"], [:new, "B"], [:headers, "C"]], row.to_a) 73 assert_equal([[:my, "1"], [:new, "2"], [:headers, "3"]], row.to_a) 87 assert_equal([["my", :my], ["new", :new], ["headers", :headers]], row.to_a) 103 assert_equal([%w{my first}, %w{new second}, %w{headers third}], row.to_a) 109 assert_equal([%w{my A}, %w{new B}, %w{headers C}], row.to_a) 115 assert_equal([%w{my 1}, %w{new 2}, %w{headers 3}], row.to_a) 129 assert_equal([[:my, "my"], [:new, "new"], [:headers, "headers"]], row.to_a) [all...] |
H A D | test_row.rb | 25 assert_equal([["A", 1], ["B", 2], ["C", 3]], row.to_a) 31 assert_equal([["A", 1], [nil, 2], [nil, 3]], row.to_a) 37 assert_equal([["A", 1], ["B", 2], ["C", nil]], row.to_a) 123 ["A", [:a, :b, :c]] ], @row.to_a ) 137 [nil, "End"] ], @row.to_a ) 152 [:new, "New"] ], @row.to_a ) 163 [nil, "Value"] ], @row.to_a ) 173 %w{Header Field} ], @row.to_a ) 184 [:key, :value] ], @row.to_a ) 198 [:last, 300] ], @row.to_a ) [all...] |
H A D | test_table.rb | 112 assert_equal([%w[A B C], [1, 2, 3], [4, 5, 6], [10, 11, 12]], @table.to_a) 116 @table.to_a ) 125 @table.to_a ) 133 @table.to_a ) 141 @table.to_a ) 167 @table.to_a ) 175 @table.to_a ) 182 @table[1] = (1..6).to_a 188 @table.to_a ) 235 assert_equal([%w[A B C], [1, 2, 3], [4, 5, 6], [7, 8, 9]], @table.to_a) [all...] |
/macosx-10.10/ruby-106/ruby/benchmark/ |
H A D | bm_so_fannkuch.rb | 8 count = (1..n).to_a 9 perm = (1..n).to_a
|
H A D | bm_so_lists.rb | 8 li1 = (1..SIZE).to_a
|
/macosx-10.10/ruby-106/ruby/lib/xmlrpc/ |
H A D | datetime.rb | 95 Time.gm(*to_a) 105 Date.new(*to_a[0,3]) 111 def to_a method in class:XMLRPC.DateTime 117 self.to_a == Array(o) rescue false
|
/macosx-10.10/ruby-106/ruby/sample/drb/ |
H A D | ring_inspect.rb | 13 Rinda::RingFinger.to_a
|
/macosx-10.10/ruby-106/ruby/test/psych/ |
H A D | test_omap.rb | 29 assert_equal [%w{a b}, %w{b c}], map.to_a 35 assert_equal list, map.to_a 61 assert_equal list, map.to_a 72 assert_equal list, map.to_a
|
/macosx-10.10/ruby-106/ruby/test/ruby/ |
H A D | test_enum.rb | 103 assert_equal([1, 2, 3, 1, 2], @obj.to_a) 135 assert_equal((1..300).to_a.reverse, (1..300).sort_by {|x| -x }) 249 assert_equal([[1, 0], [[1, 2], 1]], Foo.new.each_with_index.to_a) 260 assert_equal([[1, nil], [[1, 2], nil]], Foo.new.each_with_object(nil).to_a) 264 assert_equal([1, 2, 3], [1, 2, 3].each_entry.to_a) 265 assert_equal([1, [1, 2]], Foo.new.each_entry.to_a) 279 def ary.to_a; [1, 2]; end singleton method in class:test_zip 346 assert_equal([2,1,3,2,1], @obj.reverse_each.to_a) 351 assert_equal([], e.to_a) 354 assert_equal([[false, [1]], [true, [2, 3]], [false, [1]], [true, [2]]], e.to_a) [all...] |
H A D | test_array.rb | 111 *x = *(1..7).to_a 241 assert_equal(@cls['cat', 'dog', 1, 2, 3], %w(cat dog) + (1..3).to_a) 299 a = @cls[*(1..100).to_a] 345 a = @cls[*(0..99).to_a] 347 assert_equal(@cls[0] + @cls[*(1..99).to_a], a) 349 a = @cls[*(0..99).to_a] 351 assert_equal(@cls[*(0..9).to_a] + @cls[0] + @cls[*(20..99).to_a], a) 353 a = @cls[*(0..99).to_a] 355 assert_equal(@cls[*(0..98).to_a] 1936 def ary.to_a; [1, 2]; end singleton method in class:test_zip [all...] |
H A D | test_range.rb | 10 assert_equal([], ("a" ... "a").to_a) 11 assert_equal(["a"], ("a" .. "a").to_a) 12 assert_equal(["a"], ("a" ... "b").to_a) 13 assert_equal(["a", "b"], ("a" .. "b").to_a) 17 assert_equal(["6", "7", "8"], ("6".."8").to_a, "[ruby-talk:343187]") 18 assert_equal(["6", "7"], ("6"..."8").to_a) 19 assert_equal(["9", "10"], ("9".."10").to_a) 20 assert_equal(["09", "10"], ("09".."10").to_a, "[ruby-dev:39361]") 21 assert_equal(["9", "10"], (SimpleDelegator.new("9").."10").to_a) 22 assert_equal(["9", "10"], ("9"..SimpleDelegator.new("10")).to_a) [all...] |
/macosx-10.10/ruby-106/ruby/tool/ |
H A D | enc-unicode.rb | 50 data = {'Any' => (0x0000..0x10ffff).to_a, 'Assigned' => [], 51 'ASCII' => (0..0x007F).to_a, 'NEWLINE' => [0x0a], 'Cn' => []} 62 cps = (beg_cp..cp).to_a 74 data['Cn'].concat((last_cp.next...beg_cp).to_a) 91 cn_remainder = (last_cp.next..0x10ffff).to_a 114 data['XDigit'] = (0x0030..0x0039).to_a + (0x0041..0x0046).to_a + 115 (0x0061..0x0066).to_a 144 $2 ? cps.concat(($1.to_i(16)..$2.to_i(16)).to_a) : cps.push($1.to_i(16)) 150 data['Unknown'] = (0..0x10ffff).to_a [all...] |
/macosx-10.10/ruby-106/ruby/test/minitest/ |
H A D | test_minitest_benchmark.rb | 55 x = (1..5).to_a 62 x = (1..5).to_a 71 x = (1..5).to_a
|
/macosx-10.10/ruby-106/ruby/bootstraptest/ |
H A D | test_objectspace.rb | 17 ary = (1..10).to_a 28 ary = (1..100).to_a
|
/macosx-10.10/ruby-106/ruby/lib/rdoc/ |
H A D | rd.rb | 78 rd = rd.lines.to_a
|
/macosx-10.10/ruby-106/ruby/test/openssl/ |
H A D | test_x509name.rb | 23 ary = name.to_a 41 ary = name.to_a 54 ary = name.to_a 66 ary = name.to_a 80 ary = name.to_a 100 assert_equal(name_from_der.to_a, name.to_a) 116 ary = name.to_a 153 assert_equal(name1.to_a, name2.to_a) [all...] |
/macosx-10.10/ruby-106/ruby/test/rake/ |
H A D | test_rake_test_task.rb | 37 assert_equal ["testfile.rb"], tt.file_list.to_a 64 assert_equal ['*.rb'], tt.file_list.to_a 72 assert_equal ['a.rb', 'b.rb', '*.rb'], tt.file_list.to_a 116 assert_equal ["a.rb", 'b.rb'], tt.file_list.to_a
|
/macosx-10.10/ruby-106/ruby/test/ruby/enc/ |
H A D | test_utf32.rb | 31 al = "abcdefghijkl".force_encoding("utf-32le").each_char.to_a 32 ab = "abcdefghijkl".force_encoding("utf-32be").each_char.to_a 50 al = ascii_to_utf16le("foo\nbar\nbaz\n").lines.to_a 51 ab = ascii_to_utf16be("foo\nbar\nbaz\n").lines.to_a
|
/macosx-10.10/ruby-106/ruby/test/optparse/ |
H A D | test_summary.rb | 36 assert_equal(["foo\n", "bar"], o.to_a) 40 # test for r35467. OptionParser#to_a shouldn't split str by spaces. 44 assert_equal(["foo bar"], o.to_a, bug6348)
|