<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;link rel=&quot;stylesheet&quot; title=&quot;Sunburst&quot; href=&quot;http://idealian.net/stylesheets/sunburst.css&quot;&gt;
&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;
describe &quot;array - standard access&quot;
{
  before = function(self)
    self.list = a{888, 999, 566, 444, 112}
  end;
  
  [&quot;sets item value by idex&quot;] = function(self)
    self.list[2] = 22
    expect(self.list[2]).should_be(22)
    expect(self.list[2]).should_not_be(999)
  end;
  
  [&quot;gets item by index&quot;] = function(self) 
    expect(self.list[1]).should_be(888)
    expect(self.list[5]).should_be(112)
  end;
  
  [&quot;array.first should return the first element&quot;] = function(self)
    expect(self.list.first).should_be(self.list[1])
  end;
  
  [&quot;array.last should return the last element&quot;] = function(self)
    expect(self.list.last).should_be(self.list[#self.list])
  end;
}

&lt;/code&gt;&lt;/pre&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://softwaremaniacs.org/media/soft/highlight/highlight.js&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;initHighlightingOnLoad()&lt;/script&gt;</body>
  <created-at type="datetime">2008-08-15T23:58:49-07:00</created-at>
  <id type="integer">45920</id>
  <permalink>loonarspec</permalink>
  <repository-id type="integer">40949</repository-id>
  <title>LoonarSpec</title>
  <updated-at type="datetime">2008-08-16T00:13:04-07:00</updated-at>
  <user-id type="integer">3823</user-id>
</wiki>
