programming-formalisms / programming_formalisms_project_autumn_2023

The Programming Formalisms learners project of autumn 2023
https://github.com/UPPMAX/programming_formalisms
GNU General Public License v3.0
0 stars 1 forks source link

Create Duck class #14

Open richelbilderbeek opened 11 months ago

richelbilderbeek commented 11 months ago

In the class design document, the class in the title is mentioned. Create it!

Procedure

"""Simulation parameters."""

class SimulationParameters:

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

from src.pf_example.simulation_parameters import (
    SimulationParameters,
)

class TestSimulationParameters(unittest.TestCase):

    """Class to test the code in src.pf_example.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.

richelbilderbeek commented 11 months ago

Use branch name issue_14, branches from develop