|
From: | mike sander |
Subject: | Re: missing tests |
Date: | Thu, 16 Jan 2014 21:32:21 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
On 14-01-16 06:46 AM, Carnë Draug wrote:
makes sense. was there any particular reason for 4 dimensions with those values?The tests look good to me, and quite extensive. I would add some to matrices as well, not only scalars. Example: %!test %! a = b = randi ([-1000 1000], 10, 15, 14, 78); %! b(b>255) = 255; %! b(b<0) = 0; %! assert (cast (a, "uint8"), uint8 (b));
Similarly, you could test that scalars works fine with one example, and then all the other possibilities (complex numbers, above and below the range, etc) in a matrix with a single test.
any chance you could provide a simple example? thanks
Carnë
[Prev in Thread] | Current Thread | [Next in Thread] |