Sha256: d076c53b60dce88003ef8a264f7790844e229ded8267039f9707ad2fca145625

Contents?: true

Size: 254 Bytes

Versions: 1

Compression:

Stored size: 254 Bytes

Contents

require "spec_helper"
include Ribimaybe::Maybe
describe "Bugs" do
  describe "issue17" do
    it do
      result = Just(1).bind{ |x|
        Nothing.bind{ |y|
          rturn(x + y)
        }
      }
      expect(result).to eq(Nothing)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ribimaybe-0.0.10 spec/bug_spec.rb