summaryrefslogtreecommitdiff
path: root/src/self_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/self_test.cpp')
-rw-r--r--src/self_test.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/self_test.cpp b/src/self_test.cpp
index b3cddc2..2aabdc4 100644
--- a/src/self_test.cpp
+++ b/src/self_test.cpp
@@ -35,7 +35,7 @@ int main( int argc, char** argv )
typedef phat::sparse_pivot_column Sparse;
typedef phat::full_pivot_column Full;
- typedef phat::bit_tree_pivot_column BitTree;
+ typedef phat::bit_tree_pivot_column BitTree;
typedef phat::vector_vector Vec_vec;
typedef phat::vector_set Vec_set;
@@ -59,7 +59,7 @@ int main( int argc, char** argv )
phat::boundary_matrix< Full > full_boundary_matrix = boundary_matrix;
phat::compute_persistence_pairs< phat::chunk_reduction >( full_pairs, full_boundary_matrix );
- std::cout << "Running Chunk - BitTree ..." << std::endl;
+ std::cout << "Running Chunk - BitTree ..." << std::endl;
phat::persistence_pairs bit_tree_pairs;
phat::boundary_matrix< BitTree > bit_tree_boundary_matrix = boundary_matrix;
phat::compute_persistence_pairs< phat::chunk_reduction >( bit_tree_pairs, bit_tree_boundary_matrix );
@@ -86,18 +86,14 @@ int main( int argc, char** argv )
std::cerr << "Error: vec_vec and vec_set differ!" << std::endl;
error = true;
}
- if( vec_set_pairs != sparse_pairs ) {
- std::cerr << "Error: vec_set and sparse differ!" << std::endl;
+ if( vec_set_pairs != bit_tree_pairs ) {
+ std::cerr << "Error: vec_set and bit_tree differ!" << std::endl;
error = true;
}
- if( bit_tree_pairs != sparse_pairs ) {
+ if( bit_tree_pairs != sparse_pairs ) {
std::cerr << "Error: bit_tree and sparse differ!" << std::endl;
error = true;
}
- if( bit_tree_pairs != vec_set_pairs ) {
- std::cerr << "Error: bit_tree and vec_vec differ!" << std::endl;
- error = true;
- }
if( error ) return EXIT_FAILURE;
else std::cout << "All results are identical (as they should be)" << std::endl;