Mercurial > octave
changeset 23187:41a01755a7b9 stable
version.m: document that "-release" returns an empty string (bug #50294)
* version.m: Document that the "-release" option returns an empty string.
Add %!tests for -description and -release.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Tue, 14 Feb 2017 16:00:11 -0800 |
parents | 0032c2f7ee4e |
children | 0c9195baea1a |
files | scripts/miscellaneous/version.m |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/miscellaneous/version.m Sun Feb 12 22:20:40 2017 +0100 +++ b/scripts/miscellaneous/version.m Tue Feb 14 16:00:11 2017 -0800 @@ -36,7 +36,7 @@ ## for a description of the release (always an empty string), ## ## @item @qcode{"-release"} -## for the name of the running build, +## for the name of the running build (always an empty string), ## ## @item @qcode{"-java"} ## for version information of the Java @nospell{VM}, @@ -117,6 +117,9 @@ %!assert (version ("-date"), __octave_config_info__ ("release_date")) +%!assert (version ("-description"), "") +%!assert (version ("-release"), "") + ## Test input validation %!error version ("-date", "-release") %!error [v, d] = version ("-date")