Commit 4d3ec619 authored by Mikaël Salson's avatar Mikaël Salson

AffectAnalyse: Add an == operator for affect_infos

Makes easier to compare two affect_infos structures (notably for unit tests)
parent 1a4d2b7b
#include "affectanalyser.h"
bool operator==(const affect_infos &ai1, const affect_infos &ai2) {
return ai1.first_pos_max == ai2.first_pos_max
&& ai1.last_pos_max == ai2.last_pos_max
&& ai1.max_value == ai2.max_value
&& ai1.nb_before_right == ai2.nb_before_right
&& ai1.nb_after_right == ai2.nb_after_right
&& ai1.nb_before_left == ai2.nb_before_left
&& ai1.nb_after_left == ai2.nb_after_left
&& ai1.max_found == ai2.max_found;
}
......@@ -28,6 +28,8 @@ typedef struct affect_infos_s {
bool max_found; /* We have found a maximum */
} affect_infos;
bool operator==(const affect_infos &ai1, const affect_infos &ai2);
/**
* Class that records for every k-mer of a given sequence
* in which sequences this k-mer was also seen.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment