Re: [sympy] Adding files to doctest?

2011-04-12 Thread Ondrej Certik
On Wed, Apr 6, 2011 at 12:25 AM, Alexey U. Gudchenko wrote: > 06.04.2011 10:59, Tim Lahey пишет: >> I'll >> leave it for now, but I was using >> as a reference so it looks like >> they weren't being doctested.  I've fixed my doctests. If the others > are actually mistakes (and I think they are), I

Re: [sympy] Adding files to doctest?

2011-04-06 Thread Alexey U. Gudchenko
06.04.2011 10:59, Tim Lahey пишет: > I'll > leave it for now, but I was using >> as a reference so it looks like > they weren't being doctested. I've fixed my doctests. If the others are actually mistakes (and I think they are), I don't want to clutter this pull request with things that aren't rel

Re: [sympy] Adding files to doctest?

2011-04-05 Thread Tim Lahey
On Wed, Apr 6, 2011 at 2:50 AM, Alexey U. Gudchenko wrote: > 06.04.2011 10:18, Tim Lahey пишет: >> On Wed, Apr 6, 2011 at 2:09 AM, Alexey U. Gudchenko wrote: > >> I've added doctests for my function in sympy/physics/matrices.py (note >> physics) > > Sorry, yes, with physics it is ok too. I checke

Re: [sympy] Adding files to doctest?

2011-04-05 Thread Alexey U. Gudchenko
06.04.2011 10:18, Tim Lahey пишет: > On Wed, Apr 6, 2011 at 2:09 AM, Alexey U. Gudchenko wrote: > I've added doctests for my function in sympy/physics/matrices.py (note > physics) Sorry, yes, with physics it is ok too. I checked it. > > The docstring is, > > """Returns the Parallel Axis

Re: [sympy] Adding files to doctest?

2011-04-05 Thread Tim Lahey
On Wed, Apr 6, 2011 at 2:09 AM, Alexey U. Gudchenko wrote: > > Usually, it is not necessary to add files for ./test/doctest usage. > Files parse automatically. > Just add ">>> 2 + 2" in a docstring of functions or module with the > right indents. See other files (e.g. sympy/matrices/matrices.py )

Re: [sympy] Adding files to doctest?

2011-04-05 Thread Alexey U. Gudchenko
06.04.2011 07:36, Tim Lahey пишет: > Hi, > > I'm adding doctests to my new functions in my pull request (as > requested by Ondrej) and I noticed that sympy/physics/matrices.py > isn't being tested, which I kind of understand since there weren't any > tests in there before. How do I add the file to

[sympy] Adding files to doctest?

2011-04-05 Thread Tim Lahey
Hi, I'm adding doctests to my new functions in my pull request (as requested by Ondrej) and I noticed that sympy/physics/matrices.py isn't being tested, which I kind of understand since there weren't any tests in there before. How do I add the file to the list to be doctested? The function is test