programming-formalisms / programming_formalisms_project_summer_2024

Learners' project of the Programming Formalisms course of summer 2024
GNU General Public License v3.0
0 stars 0 forks source link

Position: Create Position #36

Closed richelbilderbeek closed 2 months ago

richelbilderbeek commented 2 months ago

In the class design document of this project (design/README.md), the class in the title is mentioned. Create it!

Procedure

Already done! Well done!

"""Simulation parameters."""

class SimulationParameters:

    """SimulationParameters holds the simulation's parameters."""
"""Tests all function in src.bacsim.simulation_parameters."""
import unittest

from src.bacsim.simulation_parameters import (
    SimulationParameters,
)

class TestSimulationParameters(unittest.TestCase):

    """Class to test the code in src.bacsim.simulation_parameters."""

    def test_can_create_params(self):
        """#14: Can construct a SimulationParameters."""
        SimulationParameters()

The test is that it works, not that it does anything useful.

Use the workflow that fits you best, ideally use a topic branch for this issue and merge to develop using a PR with code review.

phuongcaothingoc commented 2 months ago

Done