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 ThresholdConc #18

Open RJDan opened 11 months ago

RJDan commented 11 months ago

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

Procedure

"""ThresholdConc."""

class ThresholdConc:

    """ThresholdConc holds the simulation's parameters for the concentration threshold for initiating a tumble."""
"""Tests all function in src.pf_example.ThresholdConc."""
import unittest

from src.pf_example.ThresholdConc import (
    ThresholdConc,
)

class TestThresholdConc(unittest.TestCase):

    """Class to test the code in src.pf_example.ThresholdConc."""

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

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.

RJDan commented 11 months ago

branch issue_18