summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug1468.sci
blob: 568e67a336b29d1f75e17497aebd6316e28ac9a2 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
// <-- Non-regression test for bug 1468 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=1468
//
// <-- Short Description -->
//    1) 'macr2tree' function doesn't work correctly with the following script


 // Non-regression test file for bug 1468
// Copyright INRIA
// Scilab Project - F. Belahcene

MFILECONTENTS=["beep";
		"beep on";
		"beep off";
		"s = beep()"]

MFILE=TMPDIR+"/bug1468.m"
SCIFILE=TMPDIR+"/bug1468.sci"

mputl(MFILECONTENTS,MFILE);
mfile2sci(MFILE,TMPDIR,%f,%t);
SCIFILECONTENTS=mgetl(SCIFILE);

SCIFILECONTENTSREF=["";
		"// Display mode";
		"mode(0);"
		"";
		"// Display warning for floating point exception";
		"ieee(1);";
		"";
		"beep";
		"beep(""on"")";
		"beep(""off"")";
		"s = beep()"]


if or(SCIFILECONTENTSREF<>SCIFILECONTENTS) then
	affich_result(%F,924);
else
	affich_result(%T,924);
end