Skip to content

Commit 6d0e284

Browse files
committed
fixed goof in unit test discovered while working on #40
1 parent de807b4 commit 6d0e284

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

unit/sugar_sampling.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ BOOST_AUTO_TEST_CASE( singledeme_test_sep_empty )
3434

3535
BOOST_AUTO_TEST_CASE( multilocus_test_sep_empty )
3636
{
37-
multiloc_t pop(4,1000);
37+
multiloc_t pop(1000,4);
38+
BOOST_REQUIRE_EQUAL(pop.diploids.size(),1000);
3839
auto s = KTfwd::sample_separate(rng.get(),pop,20,true);
3940
BOOST_REQUIRE_EQUAL(s.size(),4);
4041
for( auto i : s)
@@ -46,7 +47,8 @@ BOOST_AUTO_TEST_CASE( multilocus_test_sep_empty )
4647

4748
BOOST_AUTO_TEST_CASE( multilocus_test_empty )
4849
{
49-
multiloc_t pop(4,1000);
50+
multiloc_t pop(1000,4);
51+
BOOST_REQUIRE_EQUAL(pop.diploids.size(),1000);
5052
auto s = KTfwd::sample(rng.get(),pop,20,true);
5153
BOOST_REQUIRE_EQUAL(s.size(),4);
5254
for( auto i : s)

0 commit comments

Comments
 (0)