comparison src/ov-re-mat.cc @ 14429:eff4a5933e28

Update %!tests in src/ directory with Octave coding conventions. * data.cc, defaults.cc, dirfns.cc, file-io.cc, graphics.cc, mappers.cc, oct-map.cc, octave.cc, ov-base.cc, ov-bool-mat.cc, ov-cell.cc, ov-fcn-handle.cc, ov-fcn-inline.cc, ov-flt-re-mat.cc, ov-int16.cc, ov-int32.cc, ov-int64.cc, ov-int8.cc, ov-null-mat.cc, ov-oncleanup.cc, ov-range.cc, ov-re-mat.cc, ov-struct.cc, ov-typeinfo.cc, ov-uint16.cc, ov-uint32.cc, ov-uint64.cc, ov-uint8.cc, ov.cc, pr-output.cc, pt-binop.cc, pt-eval.cc, pt-idx.cc, pt-mat.cc, sighandlers.cc, strfns.cc, symtab.cc, syscalls.cc, sysdep.cc, toplev.cc, utils.cc, variables.cc: Update %!tests in src/ directory with Octave coding conventions.
author Rik <octave@nomad.inbox5.com>
date Sun, 04 Mar 2012 12:21:10 -0800
parents 72c96de7a403
children 29aabe9b37a2
comparison
equal deleted inserted replaced
14428:099bd779466c 14429:eff4a5933e28
979 979
980 return octave_value (); 980 return octave_value ();
981 } 981 }
982 982
983 /* 983 /*
984
985 %!assert (class (double (single (1))), "double") 984 %!assert (class (double (single (1))), "double")
986 %!assert (class (double (single (1 + i))), "double") 985 %!assert (class (double (single (1 + i))), "double")
987 %!assert (class (double (int8 (1))), "double") 986 %!assert (class (double (int8 (1))), "double")
988 %!assert (class (double (uint8 (1))), "double") 987 %!assert (class (double (uint8 (1))), "double")
989 %!assert (class (double (int16 (1))), "double") 988 %!assert (class (double (int16 (1))), "double")
1008 %!test 1007 %!test
1009 %! x = diag (single ([i 3 2])); 1008 %! x = diag (single ([i 3 2]));
1010 %! y = double (x); 1009 %! y = double (x);
1011 %! assert (class (x), "single"); 1010 %! assert (class (x), "single");
1012 %! assert (class (y), "double"); 1011 %! assert (class (y), "double");
1013
1014 */ 1012 */