summaryrefslogtreecommitdiffstats
path: root/scilab/modules/ast/tests/nonreg_tests/bug_14808.tst
diff options
context:
space:
mode:
authorCedric Delamarre <cedric.delamarre@scilab-enterprises.com>2016-10-21 17:07:53 +0200
committerAntoine ELIAS <antoine.elias@scilab-enterprises.com>2016-11-04 15:52:26 +0100
commitdbeeeadbede28e9c9ebfc2aeadeb38932b58ce15 (patch)
treeb04f3b625c8fafcab768ab00cad359398da527cd /scilab/modules/ast/tests/nonreg_tests/bug_14808.tst
parentb7a625bc2d7871ddd60f03f51dfba48321ba4261 (diff)
downloadscilab-dbeeeadbede28e9c9ebfc2aeadeb38932b58ce15.zip
scilab-dbeeeadbede28e9c9ebfc2aeadeb38932b58ce15.tar.gz
[bug_14808] Extration using bad indexes fixed.
Change-Id: I3af32059e4d8bb7d87b2baf53ec21e9ae6d1282a
Diffstat (limited to 'scilab/modules/ast/tests/nonreg_tests/bug_14808.tst')
-rw-r--r--scilab/modules/ast/tests/nonreg_tests/bug_14808.tst18
1 files changed, 18 insertions, 0 deletions
diff --git a/scilab/modules/ast/tests/nonreg_tests/bug_14808.tst b/scilab/modules/ast/tests/nonreg_tests/bug_14808.tst
new file mode 100644
index 0000000..636f81f
--- /dev/null
+++ b/scilab/modules/ast/tests/nonreg_tests/bug_14808.tst
@@ -0,0 +1,18 @@
1// =============================================================================
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2016 - Scilab Enterprises - Cedric Delamarre
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 14808 -->
10//
11// <-- Bugzilla URL -->
12// http://bugzilla.scilab.org/14808
13//
14// <-- Short Description -->
15// E=[ 'A' 'B' 'C' 'D' 'E'] , E(0:0) Crash Scilab Console
16
17refMsg = msprintf(_("Invalid index.\n"));
18assert_checkerror("E=[ ""A"" ""B"" ""C"" ""D"" ""E""];E(0:0)", refMsg);