Statistics
| Revision:

root / trunk / tests / adstring / test_fmm_control.cpp @ 996

History | View | Annotate | Download (877 Bytes)

1
/**
2
 * Tests for errors in "void adstring::to_lower(void)"
3
 */
4
TEST_F(test_fmm_control, constructor)
5
{
6
  fmm_control fc;
7
  EXPECT_EQ(0, fc.noprintx);
8
  EXPECT_EQ(0.0, fc.fringe);
9
  EXPECT_EQ(500, fc.maxfn);
10
  EXPECT_EQ(1, fc.iprint);
11
  EXPECT_EQ(0.0001, fc.crit);
12
  EXPECT_EQ(30, fc.imax);
13
  EXPECT_EQ(0, fc.dfn);
14
  EXPECT_EQ(0, fc.ifn);
15
  EXPECT_EQ(0, fc.iexit);
16
  EXPECT_EQ(0, fc.ialph);
17
  EXPECT_EQ(0, fc.ihflag);
18
  EXPECT_EQ(0, fc.ihang);
19
  EXPECT_EQ(1, fc.scroll_flag);
20
  EXPECT_EQ(0, fc.maxfn_flag);
21
  EXPECT_EQ(0, fc.quit_flag);
22
  EXPECT_EQ(.0000001, fc.min_improve);
23
  EXPECT_EQ(0, fc.ireturn);
24
  EXPECT_EQ(-1, fc.dcheck_flag);
25
  EXPECT_EQ(1, fc.use_control_c);
26
}
27
/**
28
 * Tests to make sure fringe value is copied.
29
 */
30
TEST_F(test_fmm_control, copy_constructor)
31
{
32
  fmm_control source;
33
  source.fringe = 1.0;
34
  fmm_control copy(source);
35
  EXPECT_EQ(1.0, copy.fringe);
36
}