/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/python/cpp11_result_of_runme.py
11 строк
403 B
William S Fulton
Convert python tests using 2to3
15 авг 2020, 02:16
15 авг 2020, 02:16
d4ffa46
Код
Авторство
О чём код?
import cpp11_result_of result = cpp11_result_of.test_result(cpp11_result_of.SQUARE, 3.0) if result != 9.0: raise RuntimeError("test_result(square, 3.0) is not 9.0. Got: " + str( result)) result = cpp11_result_of.test_result_alternative1(cpp11_result_of.SQUARE, 3.0) if result != 9.0: raise RuntimeError("test_result_alternative1(square, 3.0) is not 9.0. Got: " + str( result))