Fixed circular_q size impl and added tests

This commit is contained in:
gabime
2023-08-05 17:03:04 +03:00
parent 371bc8ebe2
commit bffceb90b0
3 changed files with 52 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ public:
}
else
{
return max_items_ - 1 - (head_ - tail_);
return max_items_ - (head_ - tail_);
}
}