Sha256: 38d1765f061b8a0b07f37f7cc40367cd342fc63871fb0390935898a3d3844772
Contents?: true
Size: 356 Bytes
Versions: 5
Compression:
Stored size: 356 Bytes
Contents
covers 'facets/array/pull' test_case Array do method :peek do test do a = [1,2,3] a.peek.assert == 3 a.assert == [1,2,3] end test do a = [1,2,3] a.peek(1).assert == 2 a.assert == [1,2,3] end test do a = [1,2,3] a.peek(-1).assert == 1 a.assert == [1,2,3] end end end
Version data entries
5 entries across 5 versions & 2 rubygems