On 07/20/11 13:26, Burcin Erocal wrote:
> 
> If you are adding tests only for integration, starting a new file
> sage/symbolic/tests.py might be better.
> 
> ...
> 
> Don't forget to mention the ticket number in the test.
> 

How's this looking?

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
# HG changeset patch
# User Michael Orlitzky <mich...@orlitzky.com>
# Date 1311610421 14400
# Node ID b450716a016acfc05716a8c64e9ddabd91a61218
# Parent  8532a2ad1e558cbc91ddaaa6b7cc79956dd1e8ba
Add doctests for some known integration bugs. Tickets #11594, #11591, #11590, 
and #11238.

diff -r 8532a2ad1e55 -r b450716a016a sage/symbolic/tests.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sage/symbolic/tests.py    Mon Jul 25 12:13:41 2011 -0400
@@ -0,0 +1,47 @@
+"""
+Test case for ticket #11594. See,
+
+  http://trac.sagemath.org/sage_trac/ticket/11594
+
+for more information.
+
+sage: integrate(abs(x^2 - 1), x, -2, 2)  # optional - bug
+4
+"""
+
+
+"""
+Test case for ticket #11591. See,
+
+  http://trac.sagemath.org/sage_trac/ticket/11591
+
+for more information.
+
+sage: f = (x^2)*exp(x) / (1+exp(x))^2         # optional - bug
+sage: integrate(f, (x, -infinity, infinity))  # optional - bug
+pi^(2/3)
+"""
+
+
+"""
+Test case for ticket #11590. See,
+
+  http://trac.sagemath.org/sage_trac/ticket/11590
+
+for more information.
+
+sage: integrate(x * sgn(x^2 - 1/4), x, -1, 0)  # optional - bug
+-1/4
+"""
+
+
+"""
+Test case for ticket #11238. See,
+
+  http://trac.sagemath.org/sage_trac/ticket/11238
+
+for more information.
+
+sage: integrate(exp(-x)*sinh(sqrt(x)), x, 0, infinity)  # optional - bug
+exp(1/4) * sqrt(pi)/2
+"""

Reply via email to