Bug #592 fixed - linspace(a,b, n<=0) returned b instead of []. 19/18419/10
authorSamuel GOUGEON <sgougeon@free.fr>
Sat, 6 Aug 2016 23:57:55 +0000 (01:57 +0200)
committerClément DAVID <clement.david@scilab-enterprises.com>
Fri, 16 Dec 2016 14:27:19 +0000 (15:27 +0100)
commit5998194a77c8268b9ef93c162217ef274b54be3b
treee0bf832afc671bbf64826aa59b5c7af46172071a
parentb1be205a4987f1a3fb49db86f042ec5a3aab203c
Bug #592 fixed - linspace(a,b, n<=0) returned b instead of [].

 * http://bugzilla.scilab.org/592
 * The bug was fixed in 2006 by displaying an error message, but this
   was silently cancelled in 2009. See the report.
 * Arguments checking improved
 * unit test extended
 * Help page overhauled. Retranslation in (ja,pt,ru) will be needed.

Change-Id: I8f3f5235be96a7cb5b97e0ab94274b86ba111030
18 files changed:
scilab/CHANGES.md
scilab/modules/core/tests/nonreg_tests/bug_8086.dia.ref
scilab/modules/core/tests/nonreg_tests/bug_8086.tst
scilab/modules/elementary_functions/help/en_US/elementarymatrices/linspace.xml
scilab/modules/elementary_functions/help/fr_FR/elementarymatrices/linspace.xml
scilab/modules/elementary_functions/help/ja_JP/elementarymatrices/linspace.xml [deleted file]
scilab/modules/elementary_functions/help/pt_BR/elementarymatrices/linspace.xml [deleted file]
scilab/modules/elementary_functions/help/ru_RU/elementarymatrices/linspace.xml
scilab/modules/elementary_functions/macros/linspace.sci
scilab/modules/elementary_functions/macros/logspace.sci
scilab/modules/elementary_functions/tests/nonreg_tests/bug_12913.dia.ref
scilab/modules/elementary_functions/tests/nonreg_tests/bug_12913.tst
scilab/modules/elementary_functions/tests/nonreg_tests/bug_592.dia.ref [new file with mode: 0644]
scilab/modules/elementary_functions/tests/nonreg_tests/bug_592.tst [new file with mode: 0644]
scilab/modules/elementary_functions/tests/unit_tests/linspace.dia.ref
scilab/modules/elementary_functions/tests/unit_tests/linspace.tst
scilab/modules/elementary_functions/tests/unit_tests/logspace.dia.ref
scilab/modules/elementary_functions/tests/unit_tests/logspace.tst