Exercise definition

This commit is contained in:
docusland
2023-10-16 08:52:32 +02:00
parent cec462f691
commit c569340a25
15 changed files with 88 additions and 74 deletions

15
tests/test_quadtree.py Normal file
View File

@@ -0,0 +1,15 @@
import sys, os
sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/.."))
from src import QuadTree, TkQuadTree
def test_sample():
filename = "files/quadtree.txt"
q = QuadTree.fromFile(filename)
assert q.depth == 4
def test_single():
filename = "files/quadtree_easy.txt"
q = QuadTree.fromFile(filename)
assert q.depth == 1