Lines 872-894
Link Here
|
872 |
%! load(savefile,"as_save"); |
872 |
%! load(savefile,"as_save"); |
873 |
%! unlink(savefile); |
873 |
%! unlink(savefile); |
874 |
%! assert(as_save,sparse(af)); |
874 |
%! assert(as_save,sparse(af)); |
875 |
%!test # save binary |
|
|
876 |
%! savefile= tmpnam(); |
877 |
%! as_save=as; save("-binary",savefile,"bf","as_save","af"); |
878 |
%! clear as_save; |
879 |
%! load(savefile,"as_save"); |
880 |
%! unlink(savefile); |
881 |
%! assert(as_save,sparse(af)); |
882 |
%!testif HAVE_HDF5 # save hdf5 |
883 |
%! savefile= tmpnam(); |
884 |
%! as_save=as; save("-hdf5",savefile,"bf","as_save","af"); |
885 |
%! clear as_save; |
886 |
%! load(savefile,"as_save"); |
887 |
%! unlink(savefile); |
888 |
%! assert(as_save,sparse(af)); |
889 |
## FIXME -- we should skip (or mark as an expected failure) the test for |
890 |
## saving sparse matrices to MAT files when using 64-bit indexing since |
891 |
## that is not implemented yet. |
892 |
%!test # save matlab |
875 |
%!test # save matlab |
893 |
%! savefile= tmpnam(); |
876 |
%! savefile= tmpnam(); |
894 |
%! as_save=as; save("-mat",savefile,"bf","as_save","af"); |
877 |
%! as_save=as; save("-mat",savefile,"bf","as_save","af"); |