Minor tweaks and a new deque operator

This commit is contained in:
2021-07-20 14:48:53 -04:00
parent 08ca274444
commit 2930953569
10 changed files with 81 additions and 120 deletions

View File

@@ -430,7 +430,7 @@ LuaDefine(unittests_idalloc, "c") {
LuaAssert(L, ppds.make_patch(pp, &sb));
sb.write_uint32(0);
ppds.apply_patch(&sb);
LuaAssert(L, sb.write_count() - sb.read_count() == 4);
LuaAssert(L, sb.total_writes() - sb.total_reads() == 4);
LuaAssert(L, ppds.exactly_equal(pp));
// Pop a value from master pool