Skip to content

Commit

Permalink
Add test file.
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Jul 7, 2021
1 parent 1eac491 commit f0ac0da
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testsuite/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ tree_sequences_tree_sequence_tests_SOURCES=tree_sequences/tree_sequence_tests.cc
tree_sequences/test_diploid_recording.cc \
tree_sequences/wfevolve_table_collection_fxns.cc \
tree_sequences/test_edge_buffering_std_table_collection.cc \
tree_sequences/tskit_utils.cc
tree_sequences/tskit_utils.cc \
tree_sequences/test_tree_sequence.cc

tree_sequences_tree_sequence_tests_CFLAGS=-std=c99

Expand Down
12 changes: 12 additions & 0 deletions testsuite/tree_sequences/test_tree_sequence.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <cstdint>
#include <iostream>
#include <boost/test/unit_test.hpp>
#include <fwdpp/ts/types/tree_sequence.hpp>

using tree_sequence = fwdpp::ts::types::tree_sequence<std::int32_t>;
using tree_sequence64 = fwdpp::ts::types::tree_sequence<std::int64_t>;

//explicit instantiations
template class fwdpp::ts::types::tree_sequence<std::int32_t>;
template class fwdpp::ts::types::tree_sequence<std::int64_t>;

0 comments on commit f0ac0da

Please sign in to comment.