summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scilab/modules/string/macros/fun2string.sci2
-rw-r--r--tests/nonRegression/bug2420.sci12
-rw-r--r--tests/nonRegression/list_nonreg.txt1
3 files changed, 14 insertions, 1 deletions
diff --git a/scilab/modules/string/macros/fun2string.sci b/scilab/modules/string/macros/fun2string.sci
index 0fd7094..9947b34 100644
--- a/scilab/modules/string/macros/fun2string.sci
+++ b/scilab/modules/string/macros/fun2string.sci
@@ -18,7 +18,7 @@ function txt=fun2string(fun,nam)
18 lcount=1;level=[0,0]; 18 lcount=1;level=[0,0];
19 quote='''' 19 quote=''''
20 dquote='""' 20 dquote='""'
21 CR='\@' 21 CR='\'+ascii(10)
22 opstable() 22 opstable()
23 // add input variable in the defined variables 23 // add input variable in the defined variables
24 inputs=lst(3);outputs=lst(2) 24 inputs=lst(3);outputs=lst(2)
diff --git a/tests/nonRegression/bug2420.sci b/tests/nonRegression/bug2420.sci
new file mode 100644
index 0000000..eaf6604
--- /dev/null
+++ b/tests/nonRegression/bug2420.sci
@@ -0,0 +1,12 @@
1// Scilab Project - Serge Steer
2// Copyright INRIA 2007
3// Date : June 2007
4
5mode(-1) ;
6clear ;
7BugNumber=2420;
8function a=strudel(),a='+\@+';endfunction
9t=fun2string(strudel)
10T=stripblanks(t(2))=="a = ''+\@+'';"
11affich_result(T,BugNumber) ;
12clear ;
diff --git a/tests/nonRegression/list_nonreg.txt b/tests/nonRegression/list_nonreg.txt
index 344f559..30d40ef 100644
--- a/tests/nonRegression/list_nonreg.txt
+++ b/tests/nonRegression/list_nonreg.txt
@@ -172,6 +172,7 @@
1722407 1722407
1732410 1732410
1742414 1742414
1752420
1752421 1762421
1762428 1772428
1772429 1782429