[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
comparing version numbers
From: |
John W. Eaton |
Subject: |
comparing version numbers |
Date: |
Thu, 23 Mar 2006 17:22:15 -0500 |
I changed the version number in CVS earlier today to be 2.9.5+ and the
following test from cell2mat.m is now failing:
%!test
%! if ([1e6,1e4,1] * str2num (split (version, '.')) > 2010064)
%! assert (cell2mat (D), F); % crashes octave 2.1.64
%! endif
Do we really need the version number test here?
If there is a need to compare version numbers, then perhaps we should
have a function to do it that can handle things like 2.9.5+ or
2.9.5+SVN-serial-number (or similar).
Comments?
jwe