Sha256: cdc754792eef656122e77cc0dbfcd2136f4b7f2722f422e37f42dbf9d08f16ca
Contents?: true
Size: 1.28 KB
Versions: 3
Compression:
Stored size: 1.28 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>test_index_op (Tectcase)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File lib/facet/array/%5B%5D.rb, line 34</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_index_op</span> <span class="ruby-identifier">a</span> = [<span class="ruby-value str">'a'</span>,<span class="ruby-value str">'b'</span>,<span class="ruby-value str">'c'</span>,<span class="ruby-value str">'d'</span>,<span class="ruby-value str">'e'</span>,<span class="ruby-value str">'f'</span>] <span class="ruby-identifier">assert_equal</span>( [<span class="ruby-value str">'b'</span>,<span class="ruby-value str">'f'</span>], <span class="ruby-identifier">a</span>[[<span class="ruby-value">1</span>,<span class="ruby-value">-1</span>]] ) <span class="ruby-comment cmt">#assert_equal( ['a','c','e'], a[0,2,4] )</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
3 entries across 3 versions & 1 rubygems