Changeset 981 for trunk


Ignore:
Timestamp:
Dec 12, 2009, 11:15:11 PM (14 years ago)
Author:
Peter Johansson
Message:

refs #429. convert test repo to utf-8. I stole one line in from me (@ rev 47) in bin/svnstats.cc so stats_test is updated accordingly.

Location:
trunk/test
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/repo/db/current

    r938 r981  
    1 66 26 4
     167 2o 4
  • trunk/test/stats_test.cc

    r978 r981  
    4040#include <vector>
    4141
     42using namespace theplu::svndigest;
     43
    4244namespace theplu{
    4345namespace svndigest{
     
    4648             int linetype, const std::string& descr, const std::string& author);
    4749  std::string path(void);
    48   bool test_add(void);
    49   bool test_blame(void);
    50   bool test_classic(void);
     50  bool test_add(test::Suite&);
     51  bool test_blame(test::Suite&);
     52  bool test_classic(test::Suite&);
    5153  bool test_base_class(const Stats&);
    5254  bool test_cache(const Stats&);
     
    5759int main( int argc, char* argv[])
    5860{
    59   using namespace theplu::svndigest;
    6061  test::Suite suite(argc, argv, true);
    6162
     
    6970  }
    7071
    71   ok &= test_add();
    72   ok &= test_blame();
    73   ok &= test_classic();
     72  ok &= test_add(suite);
     73  ok &= test_blame(suite);
     74  ok &= test_classic(suite);
    7475                                                                               
    7576  if (verbose) {
     
    9394  }
    9495
    95   bool test_add(void)
    96   {
     96  bool test_add(test::Suite& suite)
     97  {
     98    suite.out() << "testing add\n";
    9799    bool ok =true;
    98100    AddStats cs(path());
     
    140142 
    141143 
    142   bool test_blame(void)
    143   {
     144  bool test_blame(test::Suite& suite)
     145  {
     146    suite.out() << "testing blame\n";
    144147    bool ok =true;
    145148    BlameStats cs(path());
     
    207210
    208211
    209   bool test_classic(void)
    210   {
     212  bool test_classic(test::Suite& suite)
     213  {
     214    suite.out() << "testing classic\n";
    211215    bool ok =true;
    212216    ClassicStats cs(path());
     
    216220    // testing copyright lines for peter
    217221    std::vector<int> correct(48,0);
    218     correct[47]=2;
     222    correct[47]=1;
    219223    ok &= check(cs, correct, LineTypeParser::copyright, "copyright", "peter");
    220224
     
    253257    correct[28]=31;
    254258    correct[30]=63;
    255     correct[47]=2;
     259    correct[47]=1;
    256260    ok &= check(cs, correct, LineTypeParser::total, "total", "all");
    257261
Note: See TracChangeset for help on using the changeset viewer.