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

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

sync with trunk

File size: 1.2 KB
Line 
1% ----------------------------------------------------------------------
2%  TEST: Octave's Rappture Library Test Functions.
3%
4%   [err] = test_put_dbl(libHandle,path,value,append)
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_put_dbl(libHandle,path,value,append)
16    err = 1;
17    printf("\n\nTESTING rpLibPutDouble\n");
18    [err] = rpLibPutDouble(libHandle,path,value,append);
19    if !err
20        [retVal, err] = rpLibGetDouble(libHandle,path);
21        printf ("retVal = %e\n",retVal);
22        if !err
23            if (retVal == value)
24                printf ("rpLibPutDouble Successful\n");
25            else
26                printf ("rpLibPutDouble FAILED\n");
27            end
28        else
29            printf ("rpLibGetDouble returned Error\n");
30        end
31    else
32        printf("Error within rpLibPutDouble\n");
33    end
34end
Note: See TracBrowser for help on using the repository browser.