12345678910111213141516 |
- #include "fileutils.h"
- #include "util/tester.h"
- #include <stdio.h>
- int
- main ( int argc, char * argv[] )
- {
- (void)argc;
- puts("Starting fileutils tests:");
- SEx_TestBool( "FU_FileExists 1", FU_FileExists(argv[0]), true );
- SEx_TestBool( "FU_FileExists 2", FU_FileExists("thisfiledoesntexist"), false );
- SEx_TestBool( "FU_FiliSize 1", FU_FileSize(argv[0]) > 0, true );
- SEx_TestBool( "FU_FiliSize 2", FU_FileSize("thisfiledoesntexist") == 0, true );
- }
|