コード例 #1
0
ファイル: test_append.py プロジェクト: CaptainAL/Spyder
def test_append_list():
    L = [1, 2, 3]
    append(L, [4, 5, 6])
    assert L == [1, 2, 3, 4, 5, 6]
コード例 #2
0
ファイル: test_append.py プロジェクト: CaptainAL/Spyder
def test_append_set_to_list():
    s = set([3, 4, 5])
    lst = [1, 2, 3]
    append(lst, s)
    assert sorted(lst) == [1, 2, 3, 3, 4, 5]
コード例 #3
0
ファイル: test_append.py プロジェクト: CaptainAL/Spyder
def test_append_tuple_to_set():
    s = set([1, 2, 3])
    append(s, (3, 4, 5))
    assert s == set([1, 2, 3, 4, 5])
コード例 #4
0
ファイル: test_append.py プロジェクト: CaptainAL/Spyder
def test_append_list_to_set():
    s = set([1, 2, 3])
    append(s, [4, 5, 6])
    assert s == set([1, 2, 3, 4, 5, 6])
コード例 #5
0
ファイル: test_append.py プロジェクト: pskyp/shareapplication
def test_append_list():
    L = [1, 2, 3]
    append(L, [4, 5, 6])
    assert L == [1, 2, 3, 4, 5, 6]
コード例 #6
0
ファイル: test_append.py プロジェクト: pskyp/shareapplication
def test_append_tuple_to_set():
    s = set([1, 2, 3])
    append(s, (3, 4, 5))
    assert s == set([1, 2, 3, 4, 5])
コード例 #7
0
ファイル: test_append.py プロジェクト: pskyp/shareapplication
def test_append_set_to_list():
    s = set([3, 4, 5])
    lst = [1, 2, 3]
    append(lst, s)
    assert sorted(lst) == [1, 2, 3, 3, 4, 5]
コード例 #8
0
ファイル: test_append.py プロジェクト: pskyp/shareapplication
def test_append_list_to_set():
    s = set([1, 2, 3])
    append(s, [4, 5, 6])
    assert s == set([1, 2, 3, 4, 5, 6])