Sha256: 00813bb1651dc0eff0dee08e4b39ad7b0b18d5942042311486614f83931194ce
Contents?: true
Size: 287 Bytes
Versions: 3
Compression:
Stored size: 287 Bytes
Contents
covers 'facets/array/index' test_case Array do method :index do test "can handle a block" do i = [1,2,3].index{ |e| e == 2 } i.assert == 1 end test "when no element is found" do i = [1,2,3].index{ |e| e == 5 } i.assert.nil? end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-3.0.0 | test/core/array/test_index.rb |
facets-2.9.3 | test/core/array/test_index.rb |
facets-2.9.2 | test/core/array/test_index.rb |