On Wed, 25 Feb 2004, Tim Jenness wrote:
> On Wed, 25 Feb 2004, Tim Jenness wrote:
>
> > On Tue, 24 Feb 2004, David Berry wrote:
> >
> > > Tim,
> > >
> > > > Over the weekend, Al, Brad and I wrote a perl interface to AST. It's
> > > > pretty complete at the moment [JNIAST was very helpful since it showed
> > > > me some of the private hooks that can be uesd] (and I learnt a lot about
> > > > AST in the process) although some areas are untested since I don't know
> > > > how to use those bits.
> > >
> > > Quick work! Can I advertise this yet on the AST home page? If so, can you
> > > either:
> > >
> >
>
> At the risk of replying to myself, is there an AST test suite anywhere
> that I can convert to a Perl test suite?
There are fairly extensive unit tests in JNIAST - in the main these
concentrate on testing that the Java-AST interface is working properly
rather than that AST itself is doing all the coordinate manipulations
correctly (though there's some of that). The test code is in
starjava/java/source/jniast/src/testcases/uk/ac/starlink/ast.
Being test code, it is by no means written and commented to the
standard that I'd use for library or application code - I wouldn't
guarantee that you'd be better off working from this than knocking
up your own unit tests.
Mark
--
Mark Taylor Starlink Programmer Physics, Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|