Commits

Carl Friedrich Bolz  committed 47469f1

test a bit more

  • Participants
  • Parent commits cb2545b

Comments (0)

Files changed (1)

             for a in "abcdefghij"[:i]:
                 obj.write(a, 50)
         assert c.terminator.size_estimate() == i
+    for i in range(1, 10):
+        c = Class()
+        assert c.terminator.size_estimate() == 0
+        for j in range(1000):
+            obj = c.instantiate()
+            for a in "abcdefghij"[:i]:
+                obj.write(a, 50)
+            obj = c.instantiate()
+            for a in "klmnopqars":
+                obj.write(a, 50)
+        assert c.terminator.size_estimate() in [(i + 10) // 2, (i + 11) // 2]