Example #1
0
def test_from_optional_none() -> None:
    assert Nothing() == Maybe.fromOptional(None)
Example #2
0
def test_from_optional_value() -> None:
    assert Just(2) == Maybe.fromOptional(2)