mirror of https://github.com/PentHertz/srsLTE.git
lib,rlc_am_nr: unit tests for NACK merging
This commit is contained in:
parent
ecc995bd4b
commit
9a34d4d81b
|
@ -183,6 +183,15 @@ struct rlc_status_nack_t {
|
|||
has_nack_range = false;
|
||||
nack_range = 0;
|
||||
}
|
||||
|
||||
bool equals(const rlc_status_nack_t& other) const
|
||||
{
|
||||
return nack_sn == other.nack_sn && has_so == other.has_so && so_start == other.so_start && so_end == other.so_end &&
|
||||
has_nack_range == other.has_nack_range && nack_range == other.nack_range;
|
||||
}
|
||||
|
||||
bool operator==(const rlc_status_nack_t& other) const { return equals(other); }
|
||||
bool operator!=(const rlc_status_nack_t& other) const { return not equals(other); }
|
||||
};
|
||||
|
||||
// STATUS PDU
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue