コード例 #1
0
def prop(a: A, x: [number]):
    sub_set = a.some_of(x)
    for el in sub_set:
        if el not in x:
            return False

    return True
コード例 #2
0
def prop(a: A, x: non_empty_list):
    sub_set = a.some_of(x, empty=False)
    return len(sub_set) >= 1
コード例 #3
0
def prop(a: A, x: [number]):
    sub_set = a.some_of(x)
    return len(sub_set) <= len(x)
コード例 #4
0
ファイル: test_arb.py プロジェクト: edofic/quick.py
def prop(a: A, x: non_empty_list):
    sub_set = a.some_of(x, empty=False)
    return len(sub_set) >= 1
コード例 #5
0
ファイル: test_arb.py プロジェクト: edofic/quick.py
def prop(a: A, x: [number]):
    sub_set = a.some_of(x)
    return len(sub_set) <= len(x)
コード例 #6
0
ファイル: test_arb.py プロジェクト: edofic/quick.py
def prop(a: A, x: [number]):
    sub_set = a.some_of(x)
    for el in sub_set:
        if el not in x:
            return False
    return True