Statistics
| Revision:

root / trunk / tests / gtests / test_scalefactor.cpp @ 1491

History | View | Annotate | Download (458 Bytes)

1
#include <gtest/gtest.h>
2
#include <df1b2fun.h>
3

    
4
class test_scalefactor: public ::testing::Test {};
5

    
6
TEST_F(test_scalefactor, run)
7
{
8
  adpool* save = df1b2variable::pool;
9
  df1b2variable::pool = 0;
10
  {
11
    adpool pool;
12
    df1b2variable::pool = &pool;
13

    
14
    int argc = 1;
15
    char* argv[] = { (char*)"./scalefactor" };
16

    
17
    int scalefactor(int argc, char* argv[]);
18
    scalefactor(argc, argv);
19

    
20
    df1b2variable::pool = 0;
21
  }
22
  df1b2variable::pool = save;
23
}