Changeset 145 for trunk/test/file.cc


Ignore:
Timestamp:
Aug 9, 2006, 11:36:31 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Removed test/parser.cc and test/stats.cc. These tests are an essential
part in the test/directory.cc and test/file.cc, and thus redundant.
Fixed the other tests to actually report success or failure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/file.cc

    r144 r145  
    2323
    2424#include "File.h"
    25 #include "Directory.h"
    2625
    27 #include <string>
     26#include <iostream>
    2827
    2928int main(const int argc,const char* argv[])
    3029{
    31   using namespace theplu::svnstat;
    32   std::string path("file.cc");
    33   File file(0,path);
    34   file.parse();
     30  try {
     31    theplu::svnstat::File file(0,"file.cc");
     32    file.parse();
     33  }
     34  catch (const std::runtime_error& x) {
     35    std::cerr << "Test file: " << x.what() << std::endl;
     36    return -1;
     37  }
    3538  return 0;
    3639}
Note: See TracChangeset for help on using the changeset viewer.