add check to verify that index is always correct in test program

This commit is contained in:
2024-07-18 15:36:21 +01:00
parent a2549b9093
commit 117ffeba6e
2 changed files with 39 additions and 1 deletions

View File

@@ -19,6 +19,8 @@ struct
val gapBuffer =
if strSize > 0 then LineGap.insert (pos, insStr, gapBuffer)
else gapBuffer
val _ = LineGap.verifyIndex gapBuffer
val _ = LineGap.verifyLines gapBuffer
val ropeString = TinyRope.toString rope