diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-11-02 19:11:06 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-11-02 19:11:06 (GMT) |
commit | 33c55bd916dff8c4932b01c7db58f0103ac31c31 (patch) | |
tree | a4cdca3287dd2df5247ce8079c424ffa438b4c2e /ast/ast_tester/testobject.c | |
parent | 4121637f3d41d6dc23e6543a445b5a3aed9e6ddc (diff) | |
download | blt-33c55bd916dff8c4932b01c7db58f0103ac31c31.zip blt-33c55bd916dff8c4932b01c7db58f0103ac31c31.tar.gz blt-33c55bd916dff8c4932b01c7db58f0103ac31c31.tar.bz2 |
update ast
Diffstat (limited to 'ast/ast_tester/testobject.c')
-rw-r--r-- | ast/ast_tester/testobject.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/ast/ast_tester/testobject.c b/ast/ast_tester/testobject.c deleted file mode 100644 index fc5b24b..0000000 --- a/ast/ast_tester/testobject.c +++ /dev/null @@ -1,40 +0,0 @@ -#include "ast.h" -#include <stdio.h> - -main(){ - char *pickle1; - char *pickle2; - AstSkyFrame *sf = astSkyFrame( " " ); - AstFrame *bf = astFrame( 2, "Domain=SKY" ); - AstFrameSet *fs = astConvert( bf, sf, " " ); - - if( fs ) { - pickle1 = astToString( fs ); - AstFrameSet *fs2 = astFromString( pickle1 ); - pickle2 = astToString( fs2 ); - if( pickle1 && pickle2 ) { - if( strcmp( pickle1, pickle2 ) && astOK ) { - astError( AST__INTER, "Error 1\n" ); - } - } else if( astOK ) { - astError( AST__INTER, "Error 2\n" ); - } - - - pickle1 = astFree( pickle1 ); - pickle2 = astFree( pickle2 ); - - if( fs2 && !astEqual( fs, fs2 ) && astOK ) { - astError( AST__INTER, "Error 3\n" ); - } - - } else if( astOK ){ - astError( AST__INTER, "Error 4\n" ); - } - - if( astOK ) { - printf(" All Object tests passed\n"); - } else { - printf("Object tests failed\n"); - } -} |