Skip to content

Commit c65252a

Browse files
committed
Add unit test checking that _n_steps is initialized by old constructor
1 parent 981373f commit c65252a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/utils/rb_parameters_test.C

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ public:
6565
CPPUNIT_ASSERT_EQUAL(params.get_value("a"), 1.);
6666
CPPUNIT_ASSERT_EQUAL(params.get_value("b"), 2.);
6767
CPPUNIT_ASSERT_EQUAL(params.get_value("c"), 3.);
68+
69+
// Test that RBParameters objects constructed with the old
70+
// constructor have the correct number of steps.
71+
CPPUNIT_ASSERT_EQUAL(params.n_steps(), 1u);
6872
}
6973

7074
void testIterators()

0 commit comments

Comments
 (0)