diff options
Diffstat (limited to 'tests/run/cpp_stl_numbers.pyx')
-rw-r--r-- | tests/run/cpp_stl_numbers.pyx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/run/cpp_stl_numbers.pyx b/tests/run/cpp_stl_numbers.pyx new file mode 100644 index 000000000..3d75b1c56 --- /dev/null +++ b/tests/run/cpp_stl_numbers.pyx @@ -0,0 +1,21 @@ +# mode: run +# tag: cpp20, cpp + +from libcpp.numbers cimport pi, e + + +def test_pi(): + """ + >>> import math + >>> test_pi() == math.pi + True + """ + return pi + +def test_e(): + """ + >>> import math + >>> test_e() == math.e + True + """ + return e |