예제 #1
0
파일: maybe_spec.py 프로젝트: tek/tryp.py
 def or_else_call(self):
     e = Empty()
     a = Just(5)
     ac = lambda: a
     e.or_else(ac).should.equal(a)
예제 #2
0
파일: maybe_spec.py 프로젝트: tek/tryp.py
 def or_else(self):
     e = Empty()
     a = Just(1)
     e.or_else(a).should.equal(a)