Sha256: 149c0e7b1516045adaa5617a583f877fa8fff41f20fae4eab89b93f62f11bf4d
Contents?: true
Size: 411 Bytes
Versions: 2
Compression:
Stored size: 411 Bytes
Contents
covers 'facets/array/divide' test_case Array do method :divide do test do r = ['a1','b1','a2','b2'].divide(/^a/) r.assert == [['a1','b1'],['a2','b2']] end test do r = ['a1','b1','a2','b2'].divide(/^b/) r.assert == [['a1'],['b1', 'a2'],['b2']] end test do r = ['a1','b1','a2','b2'].divide(/c/) r.assert = [['a1','b1','a2','b2']] end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
facets-glimmer-3.2.0 | test/core/array/test_divide.rb |
facets-3.1.0 | test/core/array/test_divide.rb |