octave-maintainers
[Top][All Lists]
Advanced

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

Re: Writing tests for data.cc


From: Mike Miller
Subject: Re: Writing tests for data.cc
Date: Mon, 16 May 2016 07:29:27 -0700
User-agent: Mutt/1.6.0 (2016-04-01)

On Mon, May 16, 2016 at 05:42:31 -0700, Dag wrote:
> I found a page that addresses the issue of missing tests in C++ files (
> http://wiki.octave.org/Add_BIST_tests_for_octave_functions_written_in_C%2B%2B
> <http://wiki.octave.org/Add_BIST_tests_for_octave_functions_written_in_C%2B%2B>
>  
> ). I am thinking of writing tests for lots of functions. I just managed to
> compile the file data.cc with tests for the function iscomplex(). These
> tests include primitive data types (int, complex, single, double), matrices,
> cell arrays, structs, etc, as you can see below. This should be rather
> comprehensive.

Not seen below. Perhaps you posted on nabble, which is notoriously bad
at mirroring verbatim blocks of code for some reason?

> Lots of the functions in the file data.cc mirror functions in the C++
> standard library. Do you know where I can find tests for the C++ standard
> library in Linux? I might get some ideas from there.
> 
> Anything else to think of?

Please check the tests/*.tst files also. Many functions are tested there
rather than in a source file. For example, many functions defined in
syscalls.cc are tested in test/system.tst.

-- 
mike



reply via email to

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