summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel GOUGEON <sgougeon@free.fr>2016-08-28 19:37:41 +0200
committerClément DAVID <clement.david@scilab-enterprises.com>2016-12-16 15:51:26 +0100
commit0cb66846424fca2417bb31f49ca76dab65983722 (patch)
treeed301b2d8ee112eab182eb40c4bfc86890014e65
parent5998194a77c8268b9ef93c162217ef274b54be3b (diff)
downloadscilab-0cb66846424fca2417bb31f49ca76dab65983722.zip
scilab-0cb66846424fca2417bb31f49ca76dab65983722.tar.gz
* Bug #10195 fixed: NR test added: execstr interpreted ascii(0->31) as ^ power
http://bugzilla.scilab.org/10195 Change-Id: Ic3b34dca6a5ace4408b9a25c0a6e6a348dc98e7e
-rw-r--r--scilab/CHANGES.md1
-rw-r--r--scilab/modules/functions/tests/nonreg_tests/bug_10195.dia.ref19
-rw-r--r--scilab/modules/functions/tests/nonreg_tests/bug_10195.tst21
3 files changed, 41 insertions, 0 deletions
diff --git a/scilab/CHANGES.md b/scilab/CHANGES.md
index 7a639ad..fa69f7c 100644
--- a/scilab/CHANGES.md
+++ b/scilab/CHANGES.md
@@ -341,6 +341,7 @@ Bug Fixes
341* [#9876](http://bugzilla.scilab.org/show_bug.cgi?id=9876): Creating a complex structure with multiple hierarchy level and size failed. 341* [#9876](http://bugzilla.scilab.org/show_bug.cgi?id=9876): Creating a complex structure with multiple hierarchy level and size failed.
342* [#9912](http://bugzilla.scilab.org/show_bug.cgi?id=9912): In case of missing translated help page, the default en_US was sometimes ignored 342* [#9912](http://bugzilla.scilab.org/show_bug.cgi?id=9912): In case of missing translated help page, the default en_US was sometimes ignored
343* [#10116](http://bugzilla.scilab.org/show_bug.cgi?id=10116): `for h = H, .., end` could not be used when H is a vector of graphic handles 343* [#10116](http://bugzilla.scilab.org/show_bug.cgi?id=10116): `for h = H, .., end` could not be used when H is a vector of graphic handles
344* [#10195](http://bugzilla.scilab.org/show_bug.cgi?id=10195): `execstr` interpreted ascii(0) to ascii(31) characters as the power `^` operator.
344* [#10981](http://bugzilla.scilab.org/show_bug.cgi?id=10981): When the view property of Axes object is set at 2d, the rotation becomes impossible. 345* [#10981](http://bugzilla.scilab.org/show_bug.cgi?id=10981): When the view property of Axes object is set at 2d, the rotation becomes impossible.
345* [#11375](http://bugzilla.scilab.org/show_bug.cgi?id=11375): When a localized help subdirectory has only a CHAPTER file specifying the section title, it was ignored. 346* [#11375](http://bugzilla.scilab.org/show_bug.cgi?id=11375): When a localized help subdirectory has only a CHAPTER file specifying the section title, it was ignored.
346* [#11692](http://bugzilla.scilab.org/show_bug.cgi?id=11692): The summary of a help section built from both default en_US and localized files was never sorted overall. 347* [#11692](http://bugzilla.scilab.org/show_bug.cgi?id=11692): The summary of a help section built from both default en_US and localized files was never sorted overall.
diff --git a/scilab/modules/functions/tests/nonreg_tests/bug_10195.dia.ref b/scilab/modules/functions/tests/nonreg_tests/bug_10195.dia.ref
new file mode 100644
index 0000000..16b72d9
--- /dev/null
+++ b/scilab/modules/functions/tests/nonreg_tests/bug_10195.dia.ref
@@ -0,0 +1,19 @@
1// =============================================================================
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2016 - Samuel GOUGEON
4//
5// This file is distributed under the same license as the Scilab package.
6// =============================================================================
7// <-- CLI SHELL MODE -->
8//
9// <-- Non-regression test for bug 10195 -->
10//
11// <-- Bugzilla URL -->
12// http://bugzilla.scilab.org/10195
13//
14// <-- Short Description -->
15// execstr() interpreted ascii(0:31) as the power ^ operator
16A = [1:9 11 12 14:25 27:31]; // ascii([0 10 13 26]) = EOL: OK
17for a = A
18 assert_checkequal(execstr("b=2"+ascii(a)+"3", "errcatch"),999);
19end
diff --git a/scilab/modules/functions/tests/nonreg_tests/bug_10195.tst b/scilab/modules/functions/tests/nonreg_tests/bug_10195.tst
new file mode 100644
index 0000000..df39a42
--- /dev/null
+++ b/scilab/modules/functions/tests/nonreg_tests/bug_10195.tst
@@ -0,0 +1,21 @@
1// =============================================================================
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2016 - Samuel GOUGEON
4//
5// This file is distributed under the same license as the Scilab package.
6// =============================================================================
7
8// <-- CLI SHELL MODE -->
9//
10// <-- Non-regression test for bug 10195 -->
11//
12// <-- Bugzilla URL -->
13// http://bugzilla.scilab.org/10195
14//
15// <-- Short Description -->
16// execstr() interpreted ascii(0:31) as the power ^ operator
17
18A = [1:9 11 12 14:25 27:31]; // ascii([0 10 13 26]) = EOL: OK
19for a = A
20 assert_checkequal(execstr("b=2"+ascii(a)+"3", "errcatch"),999);
21end