Python
Tests
Tests are to be written with the Python library
unittest. In the test file, the unittest
library and the submitted solution file must be imported:
BaumTest.py
import unittest
from Baum import *
Then, the file must define a test class as follows:
BaumTest.py
class TreeTest(unittest.TestCase):
b0=Baum()
def setUp(self):
self.b0 = Baum()
def testGroesse1(self):
self.assertEqual(0,self.b0.groesse())
Environments
The available environments are python3.9, python3.12, and python3.13. The python3.12 and
python3.13 environments also include the pygame and numpy packages.