You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
# This file is under GNU Affero General Public License 3.0
|
|
# see LICENSE.txt
|
|
import pytest
|
|
import lib_test
|
|
from lib_test import *
|
|
|
|
def test_func_V_args_V():
|
|
(ret,) = func_V_args_V()
|
|
assert(ret == None)
|
|
|
|
def test_func_Pi_args_V():
|
|
(ret,) = func_Pi_args_V()
|
|
print("RESULT:", ret)
|
|
assert (ret == 23)
|
|
|
|
def test_func_V_args_Pi():
|
|
(ret,arg1) = func_V_args_Pi(23)
|
|
print("RESULT:", ret, arg1)
|
|
assert(ret == None)
|
|
assert(arg1 == 23)
|
|
|
|
def test_func_Pi_args_Pi():
|
|
(ret,arg1) = func_Pi_args_Pi(22)
|
|
print("RESULT:", ret, arg1)
|
|
assert (ret == 23)
|
|
assert (arg1 == 22)
|
|
|
|
# @pytest.mark.skip("")
|
|
def test_func_V_args_pPi():
|
|
(ret,arg1) = func_V_args_pPi(22)
|
|
print("RESULT:", ret, arg1)
|
|
assert (ret == None)
|
|
assert (arg1 == 23)
|
|
|
|
def test_func_Pi_args_Pi_pPi_pPi():
|
|
(ret, arg1, arg2, arg3) = func_Pi_args_Pi_pPi_pPi(23, 22, 22)
|
|
print("RESULT:", ret, arg1, arg2, arg3)
|
|
assert (ret == 23)
|
|
assert (arg1 == 23)
|
|
assert (arg2 == 23)
|
|
assert (arg3 == 23)
|
|
|