Mercurial > octave-nkf
annotate test/class-concat/class-concat.tst @ 20614:10ec79b47808
use new string_value method to handle value extraction errors
* __voronoi__.cc, chol.cc, colamd.cc, fftw.cc:
Use new string_value method.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 08 Oct 2015 18:15:56 -0400 |
parents | 1af8d21608b7 |
children |
rev | line source |
---|---|
13814
a45535d630bd
new tests for class concatentation
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 %!test |
a45535d630bd
new tests for class concatentation
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 %! f = foo (); |
a45535d630bd
new tests for class concatentation
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 %! x = [f,f]; |
a45535d630bd
new tests for class concatentation
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 %! assert (size (x), [1, 2]) |
a45535d630bd
new tests for class concatentation
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 %! assert (class (x), "foo") |
a45535d630bd
new tests for class concatentation
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 |
a45535d630bd
new tests for class concatentation
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 %!test |
a45535d630bd
new tests for class concatentation
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 %! f = foo (); |
a45535d630bd
new tests for class concatentation
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 %! x = [f,f]; |
a45535d630bd
new tests for class concatentation
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 %! tmp = num2cell (x); |
a45535d630bd
new tests for class concatentation
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 %! assert (iscell (tmp)) |
a45535d630bd
new tests for class concatentation
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 %! assert (size (tmp), [1, 2]) |
a45535d630bd
new tests for class concatentation
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 %! assert (class (tmp{1}), "foo") |
a45535d630bd
new tests for class concatentation
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 %! assert (class (tmp{2}), "foo") |