Пример #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"))