[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-07-08 Thread Nicolas M. Thiery
Hi Nick, On Wed, Jun 24, 2009 at 09:12:54AM -0700, Nick Alexander wrote: Test(obj) returns something that provides all kinds of functionality and methods for testing said object. This can call certain _ methods on obj. +1 to this, -1 to lazy attributes, properties, etc. Would

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-25 Thread Nicolas M. Thiery
On Wed, Jun 24, 2009 at 06:33:42PM +0200, William Stein wrote: On Wed, Jun 24, 2009 at 6:30 PM, Robert Bradshawrober...@math.washington.edu wrote: On Jun 24, 2009, at 12:52 AM, William Stein wrote:     But, err, guys, are you telling *me* that you want an attribute here    

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-24 Thread Nicolas M. Thiery
On Wed, Jun 24, 2009 at 12:01:58AM -0400, David Roe wrote: On Tue, Jun 23, 2009 at 7:08 PM, Nicolas M. Thiery nicolas.thi...@u-psud.fr wrote: On Tue, Jun 23, 2009 at 10:29:34AM +0200, Franco Saliola wrote: I'm also in favor of _test_X to avoid cluttering up the tab

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-24 Thread William Stein
On Wed, Jun 24, 2009 at 8:33 AM, Nicolas M. Thierynicolas.thi...@u-psud.fr wrote: On Wed, Jun 24, 2009 at 12:01:58AM -0400, David Roe wrote: On Tue, Jun 23, 2009 at 7:08 PM, Nicolas M. Thiery nicolas.thi...@u-psud.fr wrote:     On Tue, Jun 23, 2009 at 10:29:34AM +0200, Franco Saliola

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-24 Thread Nicolas M. Thiery
On Wed, Jun 24, 2009 at 08:49:20AM +0200, William Stein wrote: On Wed, Jun 24, 2009 at 8:33 AM, Nicolas M. Thierynicolas.thi...@u-psud.fr wrote: On Wed, Jun 24, 2009 at 12:01:58AM -0400, David Roe wrote: On Tue, Jun 23, 2009 at 7:08 PM, Nicolas M. Thiery nicolas.thi...@u-psud.fr

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-24 Thread William Stein
On Wed, Jun 24, 2009 at 9:18 AM, Nicolas M. Thierynicolas.thi...@u-psud.fr wrote: On Wed, Jun 24, 2009 at 08:49:20AM +0200, William Stein wrote: On Wed, Jun 24, 2009 at 8:33 AM, Nicolas M. Thierynicolas.thi...@u-psud.fr wrote: On Wed, Jun 24, 2009 at 12:01:58AM -0400, David Roe wrote:

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-24 Thread Nick Alexander
Test(obj) returns something that provides all kinds of functionality and methods for testing said object. This can call certain _ methods on obj. +1 to this, -1 to lazy attributes, properties, etc. Nick --~--~-~--~~~---~--~~ To post to this group, send email

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-24 Thread Robert Bradshaw
On Jun 24, 2009, at 12:52 AM, William Stein wrote: But, err, guys, are you telling *me* that you want an attribute here instead of a method? Or should this be: One new attribute in tab completion is fine. A dozen, not so much. I still like the approach below better though. I

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-24 Thread William Stein
On Wed, Jun 24, 2009 at 6:30 PM, Robert Bradshawrober...@math.washington.edu wrote: On Jun 24, 2009, at 12:52 AM, William Stein wrote:     But, err, guys, are you telling *me* that you want an attribute here     instead of a method? Or should this be: One new attribute in tab completion

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-24 Thread Nicolas M. Thiery
On Wed, Jun 24, 2009 at 09:52:51AM +0200, William Stein wrote: One thing I am not very keen on is that to get the list of available tests, one need to do:        sage: t = Test(foo)        sage: t.asstab But I guess I can live with that (in practice, I myself will be using

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-24 Thread William Stein
On Wed, Jun 24, 2009 at 6:09 PM, Nicolas M. Thierynicolas.thi...@u-psud.fr wrote: On Wed, Jun 24, 2009 at 09:52:51AM +0200, William Stein wrote: One thing I am not very keen on is that to get the list of available tests, one need to do:        sage: t = Test(foo)        sage:

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-24 Thread Jason Grout
William Stein wrote: On Wed, Jun 24, 2009 at 6:09 PM, Nicolas M. Thierynicolas.thi...@u-psud.fr wrote: On Wed, Jun 24, 2009 at 09:52:51AM +0200, William Stein wrote: One thing I am not very keen on is that to get the list of available tests, one need to do: sage: t = Test(foo)

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-23 Thread Robert Bradshaw
On Jun 22, 2009, at 11:44 AM, Nicolas M. Thiery wrote: On Thu, Jun 18, 2009 at 09:29:46AM -0700, Nicolas Thiéry wrote: On Thu, Jun 18, 2009 at 04:40:50PM +0200, William Stein wrote: On Thu, Jun 18, 2009 at 9:03 AM, Nicolas M. To ease the reviewing of the category code, and also to make it

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-23 Thread Franco Saliola
On Tue, Jun 23, 2009 at 8:05 AM, Robert Bradshawrober...@math.washington.edu wrote: On Jun 22, 2009, at 11:44 AM, Nicolas M. Thiery wrote: On Thu, Jun 18, 2009 at 09:29:46AM -0700, Nicolas Thiéry wrote: On Thu, Jun 18, 2009 at 04:40:50PM +0200, William Stein wrote: On Thu, Jun 18, 2009 at

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-23 Thread David Roe
+1 from me as well. David On Tue, Jun 23, 2009 at 4:29 AM, Franco Saliola sali...@gmail.com wrote: On Tue, Jun 23, 2009 at 8:05 AM, Robert Bradshawrober...@math.washington.edu wrote: On Jun 22, 2009, at 11:44 AM, Nicolas M. Thiery wrote: On Thu, Jun 18, 2009 at 09:29:46AM -0700,

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-23 Thread Nicolas M. Thiery
On Tue, Jun 23, 2009 at 10:29:34AM +0200, Franco Saliola wrote: I'm also in favor of _test_X to avoid cluttering up the tab completion. Another option to increase visibility would be to have a test object, e.g. sage: foo.test.associativity() True +1. I think it merges the two

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-23 Thread David Roe
On Tue, Jun 23, 2009 at 7:08 PM, Nicolas M. Thiery nicolas.thi...@u-psud.fr wrote: On Tue, Jun 23, 2009 at 10:29:34AM +0200, Franco Saliola wrote: I'm also in favor of _test_X to avoid cluttering up the tab completion. Another option to increase visibility would be to have a test

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-22 Thread Nicolas M. Thiery
On Thu, Jun 18, 2009 at 09:29:46AM -0700, Nicolas Thiéry wrote: On Thu, Jun 18, 2009 at 04:40:50PM +0200, William Stein wrote: On Thu, Jun 18, 2009 at 9:03 AM, Nicolas M. To ease the reviewing of the category code, and also to make it more generic and useful, I have extracted the test

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-18 Thread William Stein
On Thu, Jun 18, 2009 at 9:03 AM, Nicolas M. Thierynicolas.thi...@u-psud.fr wrote:        Hi! To ease the reviewing of the category code, and also to make it more generic and useful, I have extracted the test framework code out of the categories and into SageObject. See also:

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-18 Thread Nicolas M. Thiery
On Thu, Jun 18, 2009 at 04:40:50PM +0200, William Stein wrote: On Thu, Jun 18, 2009 at 9:03 AM, Nicolas M. To ease the reviewing of the category code, and also to make it more generic and useful, I have extracted the test framework code out of the categories and into SageObject. See

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-18 Thread William Stein
2009/6/18 Nicolas M. Thiery nicolas.thi...@u-psud.fr: On Thu, Jun 18, 2009 at 04:40:50PM +0200, William Stein wrote: On Thu, Jun 18, 2009 at 9:03 AM, Nicolas M. To ease the reviewing of the category code, and also to make it more generic and useful, I have extracted the test framework code

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-18 Thread William Stein
2009/6/18 Ondrej Certik ond...@certik.cz: On Thu, Jun 18, 2009 at 1:20 PM, William Steinwst...@gmail.com wrote: Of related interest, there are 8 publicly visible methods on SageObject: sage: s = SageObject() sage: s.tab key s.category    s.db          s.dump        s.dumps       s.rename

[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-18 Thread Nicolas M. Thiery
On Thu, Jun 18, 2009 at 09:20:56PM +0200, William Stein wrote: Of related interest, there are 8 publicly visible methods on SageObject: sage: s = SageObject() sage: s.tab key s.categorys.db s.dumps.dumps s.rename s.reset_name s.saves.version I think I