Mercurial > hg > octave-lyh
changeset 7777:221fe75ac5c9
isa.m: fix tests
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 19 May 2008 16:05:36 -0400 |
parents | 4c3665e65bcd |
children | 97b7ba81e1c3 |
files | scripts/ChangeLog scripts/general/isa.m |
diffstat | 2 files changed, 26 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-05-19 John W. Eaton <jwe@octave.org> + + * general/isa.m: Fix tests. + 2008-05-13 Bill Denney <bill@denney.ws> * general/isa.m: Use persistent cell arrays to hold class names
--- a/scripts/general/isa.m +++ b/scripts/general/isa.m @@ -46,25 +46,25 @@ endfunction -%!assert (isa ("char", "float"), 0) -%!assert (isa (double (13), "float"), 1) -%!assert (isa (single (13), "float"), 1) -%!assert (isa (int8 (13), "float"), 0) -%!assert (isa (int16 (13), "float"), 0) -%!assert (isa (int32 (13), "float"), 0) -%!assert (isa (int64 (13), "float"), 0) -%!assert (isa (uint8 (13), "float"), 0) -%!assert (isa (uint16 (13), "float"), 0) -%!assert (isa (uint32 (13), "float"), 0) -%!assert (isa (uint64 (13), "float"), 0) -%!assert (isa ("char", "fnumeric"), 0) -%!assert (isa (double (13), "fnumeric"), 1) -%!assert (isa (single (13), "fnumeric"), 1) -%!assert (isa (int8 (13), "fnumeric"), 1) -%!assert (isa (int16 (13), "fnumeric"), 1) -%!assert (isa (int32 (13), "fnumeric"), 1) -%!assert (isa (int64 (13), "fnumeric"), 1) -%!assert (isa (uint8 (13), "fnumeric"), 1) -%!assert (isa (uint16 (13), "fnumeric"), 1) -%!assert (isa (uint32 (13), "fnumeric"), 1) -%!assert (isa (uint64 (13), "fnumeric"), 1) +%!assert (isa ("char", "float"), false) +%!assert (isa (double (13), "float"), true) +%!assert (isa (single (13), "float"), true) +%!assert (isa (int8 (13), "float"), false) +%!assert (isa (int16 (13), "float"), false) +%!assert (isa (int32 (13), "float"), false) +%!assert (isa (int64 (13), "float"), false) +%!assert (isa (uint8 (13), "float"), false) +%!assert (isa (uint16 (13), "float"), false) +%!assert (isa (uint32 (13), "float"), false) +%!assert (isa (uint64 (13), "float"), false) +%!assert (isa ("char", "fnumeric"), false) +%!assert (isa (double (13), "fnumeric"), true) +%!assert (isa (single (13), "fnumeric"), true) +%!assert (isa (int8 (13), "fnumeric"), true) +%!assert (isa (int16 (13), "fnumeric"), true) +%!assert (isa (int32 (13), "fnumeric"), true) +%!assert (isa (int64 (13), "fnumeric"), true) +%!assert (isa (uint8 (13), "fnumeric"), true) +%!assert (isa (uint16 (13), "fnumeric"), true) +%!assert (isa (uint32 (13), "fnumeric"), true) +%!assert (isa (uint64 (13), "fnumeric"), true)