summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdeline CARNIS <adeline.carnis@scilab-enterprises.com>2016-10-11 12:46:01 +0200
committerAntoine ELIAS <antoine.elias@scilab-enterprises.com>2016-11-04 15:22:45 +0200
commitf16b16d5e345c7860d23b8b3d3404bb50006f6ea (patch)
tree543276d106d8e11188fc3e80ab0548200b37da34
parent4345e11385ea6c7df1a589b90210d92b194afab6 (diff)
downloadscilab-f16b16d5e345c7860d23b8b3d3404bb50006f6ea.zip
scilab-f16b16d5e345c7860d23b8b3d3404bb50006f6ea.tar.gz
* Bug #8841 fixed - Error in struct extraction. Problem fixed in version 6. A non regression test added.
Change-Id: I341548bd959fd584f1b72ad832c1054d248838ab
-rw-r--r--scilab/CHANGES.md1
-rw-r--r--scilab/modules/core/tests/nonreg_tests/bug_8841.dia.ref18
-rw-r--r--scilab/modules/core/tests/nonreg_tests/bug_8841.tst19
3 files changed, 38 insertions, 0 deletions
diff --git a/scilab/CHANGES.md b/scilab/CHANGES.md
index 1c97be3..5f59299 100644
--- a/scilab/CHANGES.md
+++ b/scilab/CHANGES.md
@@ -321,6 +321,7 @@ Bug Fixes
321* [#8010](http://bugzilla.scilab.org/show_bug.cgi?id=8010): Permanent variables could be redefined through a syntax like `%i(1,1)=1` 321* [#8010](http://bugzilla.scilab.org/show_bug.cgi?id=8010): Permanent variables could be redefined through a syntax like `%i(1,1)=1`
322* [#8356](http://bugzilla.scilab.org/show_bug.cgi?id=8356): `sci2exp` applied to lists, tlists or mlists having undefined fields yielded an error or a wrong result. 322* [#8356](http://bugzilla.scilab.org/show_bug.cgi?id=8356): `sci2exp` applied to lists, tlists or mlists having undefined fields yielded an error or a wrong result.
323* [#8493](http://bugzilla.scilab.org/show_bug.cgi?id=8493): Some trivial simplifications of `p1./p2` with matrices of complex-encoded polynomials were not done. 323* [#8493](http://bugzilla.scilab.org/show_bug.cgi?id=8493): Some trivial simplifications of `p1./p2` with matrices of complex-encoded polynomials were not done.
324* [#8841](http://bugzilla.scilab.org/show_bug.cgi?id=8841): Error in struct extraction, s.a is not equal to s(1).a
324* [#8938](http://bugzilla.scilab.org/show_bug.cgi?id=8938): In a boolean sparse matrix `sp`, distributive insertions like `sp(1,:)=%t`, `sp(1,1:$)=%t` or `sp(:,:)=%t` yielded an error. 325* [#8938](http://bugzilla.scilab.org/show_bug.cgi?id=8938): In a boolean sparse matrix `sp`, distributive insertions like `sp(1,:)=%t`, `sp(1,1:$)=%t` or `sp(:,:)=%t` yielded an error.
325* [#9153](http://bugzilla.scilab.org/show_bug.cgi?id=9153): The `isqualbitwise` help page was inaccurate and badly located 326* [#9153](http://bugzilla.scilab.org/show_bug.cgi?id=9153): The `isqualbitwise` help page was inaccurate and badly located
326* [#9161](http://bugzilla.scilab.org/show_bug.cgi?id=9161): Multiple insertions at a repeated index in a sparse matrice wrongly updated it. 327* [#9161](http://bugzilla.scilab.org/show_bug.cgi?id=9161): Multiple insertions at a repeated index in a sparse matrice wrongly updated it.
diff --git a/scilab/modules/core/tests/nonreg_tests/bug_8841.dia.ref b/scilab/modules/core/tests/nonreg_tests/bug_8841.dia.ref
new file mode 100644
index 0000000..d1eebc4
--- /dev/null
+++ b/scilab/modules/core/tests/nonreg_tests/bug_8841.dia.ref
@@ -0,0 +1,18 @@
1// =============================================================================
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2016 - Scilab Enterprises - Adeline CARNIS
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 8841 -->
11//
12// <-- Bugzilla URL -->
13// http://bugzilla.scilab.org/show_bug.cgi?id=8841
14//
15// <-- Short Description -->
16// Error in struct extraction. Now, s.a is equal to s(1).a
17s.a = list(10,20);
18assert_checkequal(s.a, s(1).a);
diff --git a/scilab/modules/core/tests/nonreg_tests/bug_8841.tst b/scilab/modules/core/tests/nonreg_tests/bug_8841.tst
new file mode 100644
index 0000000..b6a9f06
--- /dev/null
+++ b/scilab/modules/core/tests/nonreg_tests/bug_8841.tst
@@ -0,0 +1,19 @@
1// =============================================================================
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2016 - Scilab Enterprises - Adeline CARNIS
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 8841 -->
11//
12// <-- Bugzilla URL -->
13// http://bugzilla.scilab.org/show_bug.cgi?id=8841
14//
15// <-- Short Description -->
16// Error in struct extraction. Now, s.a is equal to s(1).a
17
18s.a = list(10,20);
19assert_checkequal(s.a, s(1).a);