all: minor cleanups

This commit is contained in:
Markus F.X.J. Oberhumer
2023-05-14 09:36:10 +02:00
parent b3e4efbabe
commit 40653e40a4
7 changed files with 39 additions and 21 deletions
+4 -1
View File
@@ -25,6 +25,9 @@
<markus@oberhumer.com> <ezerotven+github@gmail.com>
*/
// A MemBuffer allocates memory on the heap, and automatically
// gets destructed when leaving scope or on exceptions.
#include "../conf.h"
#include "membuffer.h"
@@ -256,7 +259,7 @@ void MemBuffer::dealloc() noexcept {
//
**************************************************************************/
TEST_CASE("MemBuffer") {
TEST_CASE("MemBuffer core") {
MemBuffer mb;
CHECK_THROWS(mb.checkState());
CHECK_THROWS(mb.alloc(0x30000000 + 1));