예제 #1
0
def test_from_ok() -> None:
    assert Just(3) == Maybe.fromResult(Ok(3))
예제 #2
0
def test_from_err() -> None:
    assert Nothing() == Maybe.fromResult(Err("oops"))