octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OctDev] Implementation of importdata belonging to Octave Core or Oc


From: c.
Subject: Re: [OctDev] Implementation of importdata belonging to Octave Core or Octave-Forge?
Date: Sun, 21 Oct 2012 17:24:01 +0200

On 21 Oct 2012, at 15:47, Ben Abbott wrote:

> On Oct 19, 2012, at 1:35 PM, Erik Kjellson wrote:
> 
>> Hello,
>> 
>> Now I have uploaded my implementation here: 
>> https://sourceforge.net/p/octave/feature-requests/41/
>> 
>> I've noticed that a lot of function files have some kind of tests in the end 
>> of the file. I guess that you use them to check that you haven't introduced 
>> any logic error in the code when modifying it?
>> I did find this page: http://wiki.octave.org/Tests
>> But I guess I need to fake input from a fake file in some way, is there 
>> anywhere I can read more on how to do that?
>> 
>> regards,
>> Erik
> 
> I suggest you create a temporary file and use it for testing.   See "help 
> tmpnam"
> 
> Ben

This fuction:
https://sourceforge.net/p/octave/code/11324/tree/trunk/octave-forge/extra/bim/inst/bim3a_osc_advection_diffusion.m

has an example of creating a temporary file to work with in a demo.

HTH,
c.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]