summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug1074.sci
blob: 9c8e3a093617e5fed846325670a8892ef4584184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// <-- Non-regression test for bug 1074 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=1074
//
// <-- Short Description -->
//    fun2string()  converts anomalously function calls with more
//    than 1 return argument, and does not retain the function name


// Non-regression test file for bug 1057
// Pierre MARECHAL - Scilab Project
// Copyright INRIA
// 1er juin 2005

mode(-1);
clear;

function foo()
	[a,b,c]=foo1(1)
endfunction

A = fun2string(foo)
B = ["function []=ans";"  [a,b,c] = foo1(1)";"endfunction"]

if and( A == B ) then
	affich_result(%T,1074);
else
	affich_result(%F,1074);
end