Skip to content

Commit

Permalink
fixed goof in unit test discovered while working on #40
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Apr 27, 2016
1 parent de807b4 commit 6d0e284
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions unit/sugar_sampling.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ BOOST_AUTO_TEST_CASE( singledeme_test_sep_empty )

BOOST_AUTO_TEST_CASE( multilocus_test_sep_empty )
{
multiloc_t pop(4,1000);
multiloc_t pop(1000,4);
BOOST_REQUIRE_EQUAL(pop.diploids.size(),1000);
auto s = KTfwd::sample_separate(rng.get(),pop,20,true);
BOOST_REQUIRE_EQUAL(s.size(),4);
for( auto i : s)
Expand All @@ -46,7 +47,8 @@ BOOST_AUTO_TEST_CASE( multilocus_test_sep_empty )

BOOST_AUTO_TEST_CASE( multilocus_test_empty )
{
multiloc_t pop(4,1000);
multiloc_t pop(1000,4);
BOOST_REQUIRE_EQUAL(pop.diploids.size(),1000);
auto s = KTfwd::sample(rng.get(),pop,20,true);
BOOST_REQUIRE_EQUAL(s.size(),4);
for( auto i : s)
Expand Down

0 comments on commit 6d0e284

Please sign in to comment.