source: branches/nanovis2/oldtest/src/matlab/test_node_type.m @ 3305

Last change on this file since 3305 was 3305, checked in by ldelgass, 11 years ago

sync with trunk

File size: 1.1 KB
Line 
1% ----------------------------------------------------------------------
2%  TEST: Matlab's Rappture Library Test Functions.
3%
4%   [err] = test_node_type(lib, path)
5%
6%
7% ======================================================================
8%  AUTHOR:  Derrick Kearney, Purdue University
9%  Copyright (c) 2004-2012  HUBzero Foundation, LLC
10%
11%  See the file "license.terms" for information on usage and
12%  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13% ======================================================================
14
15function [err] = test_node_type(lib,path)
16    err = 1;
17    disp(sprintf('\n\nTESTING rpLibNodeType\n'));
18    [nodeHandle,err] = rpLibElement(lib,path);
19    if ~err
20        if nodeHandle
21            [typeStr,err] = rpLibNodeType(nodeHandle);
22            if ~err
23                disp(sprintf ('%s typeStr = %s\n', path, typeStr));
24            else
25                disp(sprintf('Error within rpLibNodeType function\n'));
26            end
27        else
28            disp(sprintf('rpLibElement returned invalid nodeHandle\n'));
29        end
30    else
31        disp(sprintf('Error within rpLibElement function\n'));
32    end
33return
Note: See TracBrowser for help on using the repository browser.