test_semigroups.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:pyMonet 作者: przemyslawjanpietrzak 项目源码 文件源码
def test_fold(integer, text, boolean):

    dictionary = {'key': 'value'}

    assert First(text).fold(identity) is text
    assert All(boolean).fold(identity) is boolean
    assert Sum(integers).fold(identity) is integers
    assert Map(dictionary).fold(identity) is dictionary
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号