haocrowd/tests/test_base.py
Huxley Deng 2c077cd91d Build Project Structure.
New: base classes and modules.
New: unit tests.
2023-05-22 17:25:11 +08:00

19 lines
356 B
Python

import unittest
from haocrowd.core.base import SimulationBase
class TestBase(unittest.TestCase):
def test_basic(self):
class MySim(SimulationBase):
def run(self) -> str:
return "HelloSim"
mysim = MySim()
self.assertEqual(mysim.run(), "HelloSim")
if __name__ == "__main__":
unittest.main()