From 006262f0963e853023dfd28fa4183d62648fd8a5 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 26 Oct 2008 17:59:17 +0100 Subject: [PATCH] new error test case for string to int conversion --- tests/errors/e_strcoerce.pyx | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/errors/e_strcoerce.pyx diff --git a/tests/errors/e_strcoerce.pyx b/tests/errors/e_strcoerce.pyx new file mode 100644 index 00000000..c8a508a7 --- /dev/null +++ b/tests/errors/e_strcoerce.pyx @@ -0,0 +1,8 @@ +cdef int c1 = "t" # works +cdef int c2 = "te" # fails +cdef int cx = "test" # fails + +_ERRORS = """ +2:14: Only coerce single-character ascii strings can be used as ints. +3:14: Only coerce single-character ascii strings can be used as ints. +""" -- 2.26.2