comparison libinterp/octave-value/ov-typeinfo.cc @ 15810:87a61a4d8fd2

Add typeinfo %!tests for onCleanup and octave_java types. * libinterp/octave-value/ov-typeinfo.cc(Ftypeinfo): Add %!tests for onCleanup and octave_java types.
author Rik <rik@octave.org>
date Mon, 17 Dec 2012 16:44:41 -0800
parents 049e8bbff782
children d63878346099
comparison
equal deleted inserted replaced
15809:cf3a18843a26 15810:87a61a4d8fd2
701 701
702 %!assert (typeinfo ([]), "null_matrix") 702 %!assert (typeinfo ([]), "null_matrix")
703 %!assert (typeinfo (""), "null_string") 703 %!assert (typeinfo (""), "null_string")
704 %!assert (typeinfo (''), "null_sq_string") 704 %!assert (typeinfo (''), "null_sq_string")
705 705
706 %!test
707 %! cvar = onCleanup (@() "");
708 %! assert (typeinfo (cvar), "onCleanup");
709
710 %!testif HAVE_JAVA
711 %! x = javaObject ("java.lang.StringBuffer");
712 %! assert (typeinfo (x), "octave_java");
713
714 ## Test input validation
706 %!error typeinfo ("foo", 1) 715 %!error typeinfo ("foo", 1)
707 */ 716 */