예제 #1
0
def test_and_with_some_nun():
    x = Some(2)
    y = Nun()

    assert x.and_(y) == Nun()
예제 #2
0
def test_and_with_some_some():
    x = Some(2)
    y = Some(3)

    assert x.and_(y) == Some(3)