source: branches/nanovis2/oldtest/src/octave/test_convert_str.m @ 3305

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

sync with trunk

File size: 969 bytes
Line 
1% ----------------------------------------------------------------------
2%  TEST: Octave's Rappture Library Test Functions.
3%
4%   [err] = test_convert(fromVal, toUnitsName, showUnits)
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_convert_str(fromVal, toUnitsName, showUnits)
16    err = 1;
17    printf("\n\nTESTING rpUnitsConvertStr: convert %s to %s, showUnits: %i\n", fromVal, toUnitsName, showUnits);
18
19    [retStr,err] = rpUnitsConvertStr(fromVal, toUnitsName, showUnits);
20    if !err
21        printf("%s = %s\n",fromVal,retStr);
22    else
23        printf("Error within rpUnitsConvert function\n");
24    end
25end
Note: See TracBrowser for help on using the repository browser.