コード例 #1
0
def test_fixed_getitem_foldable():
    builtin_test(
        'list.getitem_foldable/NONNEG',
        [varoftype(FIXEDLIST), varoftype(lltype.Signed)], lltype.Void, "")
    builtin_test(
        'list.getitem_foldable/NEG',
        [varoftype(FIXEDLIST), varoftype(lltype.Signed)], lltype.Void, "")
コード例 #2
0
ファイル: test_void_list.py プロジェクト: Darriall/pypy
def test_fixed_getitem_foldable():
    builtin_test('list.getitem_foldable/NONNEG',
                 [varoftype(FIXEDLIST), varoftype(lltype.Signed)],
                 lltype.Void, "")
    builtin_test('list.getitem_foldable/NEG',
                 [varoftype(FIXEDLIST), varoftype(lltype.Signed)],
                 lltype.Void, "")
コード例 #3
0
def test_fixed_ll_arraymove():
    builtin_test('list.ll_arraymove', [
        varoftype(FIXEDLIST),
        varoftype(lltype.Signed),
        varoftype(lltype.Signed),
        varoftype(lltype.Signed)
    ], lltype.Void, NotSupported)
コード例 #4
0
def test_resizable_getitem():
    builtin_test(
        'list.getitem/NONNEG',
        [varoftype(VARLIST), varoftype(lltype.Signed)], lltype.Void, "")
    builtin_test(
        'list.getitem/NEG',
        [varoftype(VARLIST), varoftype(lltype.Signed)], lltype.Void, "")
コード例 #5
0
ファイル: test_void_list.py プロジェクト: Darriall/pypy
def test_resizable_getitem():
    builtin_test('list.getitem/NONNEG',
                 [varoftype(VARLIST), varoftype(lltype.Signed)],
                 lltype.Void, "")
    builtin_test('list.getitem/NEG',
                 [varoftype(VARLIST), varoftype(lltype.Signed)],
                 lltype.Void, "")
コード例 #6
0
ファイル: test_void_list.py プロジェクト: Darriall/pypy
def test_fixed_setitem():
    builtin_test('list.setitem/NONNEG', [varoftype(FIXEDLIST),
                                         varoftype(lltype.Signed),
                                         varoftype(lltype.Void)],
                 lltype.Void, "")
    builtin_test('list.setitem/NEG', [varoftype(FIXEDLIST),
                                      varoftype(lltype.Signed),
                                      varoftype(lltype.Void)],
                 lltype.Void, "")
コード例 #7
0
ファイル: test_void_list.py プロジェクト: Darriall/pypy
def test_fixed_ll_arraycopy():
    builtin_test('list.ll_arraycopy',
                 [varoftype(FIXEDLIST),
                  varoftype(FIXEDLIST),
                  varoftype(lltype.Signed), 
                  varoftype(lltype.Signed), 
                  varoftype(lltype.Signed)],
                 lltype.Void,
                 NotSupported)
コード例 #8
0
def test_fixed_setitem():
    builtin_test('list.setitem/NONNEG', [
        varoftype(FIXEDLIST),
        varoftype(lltype.Signed),
        varoftype(lltype.Void)
    ], lltype.Void, "")
    builtin_test('list.setitem/NEG', [
        varoftype(FIXEDLIST),
        varoftype(lltype.Signed),
        varoftype(lltype.Void)
    ], lltype.Void, "")
コード例 #9
0
def test_fixed_len_foldable():
    builtin_test('list.len_foldable', [varoftype(FIXEDLIST)], lltype.Signed,
                 NotSupported)
コード例 #10
0
def test_newlist():
    builtin_test('newlist', [], FIXEDLIST, NotSupported)
    builtin_test('newlist', [Constant(5, lltype.Signed)], FIXEDLIST,
                 NotSupported)
    builtin_test('newlist', [varoftype(lltype.Signed)], FIXEDLIST,
                 NotSupported)
    builtin_test('newlist',
                 [Constant(5, lltype.Signed),
                  Constant(0, lltype.Signed)], FIXEDLIST, NotSupported)
    builtin_test('newlist',
                 [Constant(5, lltype.Signed),
                  Constant(1, lltype.Signed)], FIXEDLIST, NotSupported)
    builtin_test('newlist',
                 [Constant(5, lltype.Signed),
                  varoftype(lltype.Signed)], FIXEDLIST, NotSupported)
コード例 #11
0
def test_resizable_unsupportedop():
    builtin_test('list.foobar', [varoftype(VARLIST)], lltype.Signed,
                 NotSupported)
コード例 #12
0
def test_resizable_len():
    builtin_test('list.len', [varoftype(VARLIST)], lltype.Signed, NotSupported)
コード例 #13
0
ファイル: test_void_list.py プロジェクト: Darriall/pypy
def test_resizable_newlist():
    builtin_test('newlist', [], VARLIST,
                 NotSupported)
    builtin_test('newlist', [Constant(5, lltype.Signed)], VARLIST,
                 NotSupported)
    builtin_test('newlist', [varoftype(lltype.Signed)], VARLIST,
                 NotSupported)
    builtin_test('newlist', [Constant(5, lltype.Signed),
                             Constant(0, lltype.Signed)], VARLIST,
                 NotSupported)
    builtin_test('newlist', [Constant(5, lltype.Signed),
                             Constant(1, lltype.Signed)], VARLIST,
                 NotSupported)
    builtin_test('newlist', [Constant(5, lltype.Signed),
                             varoftype(lltype.Signed)], VARLIST,
                 NotSupported)
コード例 #14
0
ファイル: test_void_list.py プロジェクト: Darriall/pypy
def test_fixed_len_foldable():
    builtin_test('list.len_foldable', [varoftype(FIXEDLIST)], lltype.Signed,
                 NotSupported)
コード例 #15
0
ファイル: test_void_list.py プロジェクト: Darriall/pypy
def test_resizable_unsupportedop():
    builtin_test('list.foobar', [varoftype(VARLIST)], lltype.Signed,
                 NotSupported)
コード例 #16
0
ファイル: test_void_list.py プロジェクト: Darriall/pypy
def test_resizable_len():
    builtin_test('list.len', [varoftype(VARLIST)], lltype.Signed,
                 NotSupported)