From 6d0e28497d13b183692ff7cfd74898be8027b78c Mon Sep 17 00:00:00 2001 From: "Kevin R. Thornton" Date: Wed, 27 Apr 2016 15:23:43 -0700 Subject: [PATCH] fixed goof in unit test discovered while working on #40 --- unit/sugar_sampling.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/unit/sugar_sampling.cc b/unit/sugar_sampling.cc index 8b727f557..025c57823 100644 --- a/unit/sugar_sampling.cc +++ b/unit/sugar_sampling.cc @@ -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) @@ -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)