Add an experimental, disabled 32 bit internal version

I think it's only missing detection for full-precision versions more
than 2e9 apart
This commit is contained in:
2024-06-28 15:53:35 -07:00
parent ff81890921
commit b311e5f1f0
3 changed files with 109 additions and 44 deletions
+11
View File
@@ -66,6 +66,17 @@ def test_inner_full_words():
cs.check(read(1, b"\x21", b"\xc2"))
def test_internal_version_zero():
with DebugConflictSet() as cs:
cs.setOldestVersion(0xFFFFFFF0)
for i in range(24):
cs.addWrites(0xFFFFFFF1, write(bytes([i])))
for i in range(256 - 25, 256):
cs.addWrites(0xFFFFFFF1, write(bytes([i])))
cs.addWrites(0, write(b"\xff"))
cs.check(read(0xFFFFFFF1, b"\x00", b"\xff"))
def test_decrease_capacity():
# make a Node48, then a Node256
for count in (17, 49):