summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/cpp11_result_of_runme.py
blob: 4469efd81f0af1fd6b76222d67d1ac8e97563b94 (plain)
1
2
3
4
5
6
7
8
9
10
11
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)