File: testhelper.m

package info (click to toggle)
octave-io 2.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,812 kB
  • sloc: objc: 2,092; cpp: 546; python: 438; makefile: 204; xml: 23; sh: 20
file content (15 lines) | stat: -rw-r--r-- 400 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function testhelper(ext, iface)
    pkg load io

    ## Do not load libreoffice/UNO stuff (the 3rd arg is omitted), since UNO does
    ## not work in a chroot
    chk_spreadsheet_support("/usr/share/java", 0);

    if nargin < 2
        iface = [];
    endif
    fname = [ "debian/tests/test." ext ];
    xlsfinfo(fname, iface);
    d = xlsread(fname);
    assert(size(d) == [ 1001, 2]);
endfunction