From 3c0051cb9e7be4a1886ac06bb39eaacdbbc88eb6 Mon Sep 17 00:00:00 2001
From: Stefan Behnel <scoder@users.berlios.de>
Date: Thu, 11 Feb 2010 23:10:05 +0100
Subject: [PATCH] fix doctest

---
 tests/run/carray_slicing.pyx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/run/carray_slicing.pyx b/tests/run/carray_slicing.pyx
index c3b786893..a33bd2df0 100644
--- a/tests/run/carray_slicing.pyx
+++ b/tests/run/carray_slicing.pyx
@@ -163,7 +163,7 @@ def slice_intptr_for_loop_c():
 
 cdef double cdoubles[6]
 for i in range(6):
-    cdoubles[i] = i + 0.1
+    cdoubles[i] = i + 0.5
 
 cdef double* cdoubles_ptr = cdoubles
 
@@ -173,9 +173,9 @@ cdef double* cdoubles_ptr = cdoubles
 def slice_doublptr_for_loop_c():
     """
     >>> slice_doublptr_for_loop_c()
-    [0.1, 1.1, 2.1]
-    [1.1, 2.1, 3.1, 4.1]
-    [4.1, 5.1]
+    [0.5, 1.5, 2.5]
+    [1.5, 2.5, 3.5, 4.5]
+    [4.5, 5.5]
     """
     cdef double d
     print [ d for d in cdoubles_ptr[:3] ]
@@ -188,7 +188,7 @@ def slice_doublptr_for_loop_c():
 def iter_doublearray_for_loop_c():
     """
     >>> iter_doublearray_for_loop_c()
-    [0.1, 1.1, 2.1, 3.1, 4.1, 5.1]
+    [0.5, 1.5, 2.5, 3.5, 4.5, 5.5]
     """
     cdef double d
     print [ d for d in cdoubles ]
-- 
2.30.9