diff options
-rw-r--r-- | scilab/modules/string/macros/fun2string.sci | 2 | ||||
-rw-r--r-- | tests/nonRegression/bug2420.sci | 12 | ||||
-rw-r--r-- | tests/nonRegression/list_nonreg.txt | 1 |
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 | |||
5 | mode(-1) ; | ||
6 | clear ; | ||
7 | BugNumber=2420; | ||
8 | function a=strudel(),a='+\@+';endfunction | ||
9 | t=fun2string(strudel) | ||
10 | T=stripblanks(t(2))=="a = ''+\@+'';" | ||
11 | affich_result(T,BugNumber) ; | ||
12 | clear ; | ||
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 @@ | |||
172 | 2407 | 172 | 2407 |
173 | 2410 | 173 | 2410 |
174 | 2414 | 174 | 2414 |
175 | 2420 | ||
175 | 2421 | 176 | 2421 |
176 | 2428 | 177 | 2428 |
177 | 2429 | 178 | 2429 |