blob: 479dfa14c129b02c7d51f2dd3209e75749135cba (
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
|
// <-- Non-regression test for bug 2428 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=2428
//
// <-- Short Description -->
// I would like to convert to SciLab the package TBMLab 3.1 by Smets
// (http://iridia.ulb.ac.be/~psmets/TBMLAB.zip). I tried both via the menu
// Applications -> m2sci and trying to convert recursively the directory
// of the package and via the SciPad menu File -> Import Matlab File. In
// the first case the conversion fails without errors, in the second case
// an error appears and a message suggests to report here the error.
// Copyright INRIA
// Scilab Project - Vincent COUVERT
MFILE=TMPDIR+"/bug2428.m"
SCIFILE=TMPDIR+"/bug2428.sci"
correct=%T;
MFILECONTENTS=["function bug2428";
"global gui_settings";
"i = 1;";
"a = gui_settings.pn_mem{i}"]
fd=mopen(MFILE,"w");
mputl(MFILECONTENTS,fd);
mclose(fd);
ierr=execstr("mfile2sci("""+MFILE+""","""+TMPDIR+""")","errcatch")
correct=correct&ierr==0;
//affich_result(correct,2428);
disp(correct);
|