Commit 5709b168 authored by Sebastien Robin's avatar Sebastien Robin

BTreeData: also check truncate(0)

parent 88b592fb
...@@ -236,3 +236,5 @@ if __name__ == '__main__': ...@@ -236,3 +236,5 @@ if __name__ == '__main__':
check(data, 5, 0, 5, '0123X', [0]) check(data, 5, 0, 5, '0123X', [0])
data.truncate(3) data.truncate(3)
check(data, 3, 0, 3, '012', [0]) check(data, 3, 0, 3, '012', [0])
data.truncate(0)
check(data, 0, 0, 0, '', [])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment