Sha256: ff7a1a2a228c8f4cfba5dcfbf3d8a747ab5fd64fb37cb7426da522e020804821
Contents?: true
Size: 301 Bytes
Versions: 1
Compression:
Stored size: 301 Bytes
Contents
require_relative '../spec_helper' describe 'Either' do it 'should support filter and map' do eithers = sequence(left('error'), right(3)) expect(eithers.filter(is_left?).map(get_left)).to eq(sequence('error')) expect(eithers.filter(is_right?).map(get_right)).to eq(sequence(3)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
totally_lazy-0.1.26 | spec/totally_lazy/either_spec.rb |