from __future__ import annotations

import unittest

from reliability_core.regressions_r6 import run_r6_rg


class R6RegressionTests(unittest.TestCase):
    pass


def _make(test_id:str):
    def test(self:R6RegressionTests)->None:
        result=run_r6_rg(test_id)
        self.assertTrue(result.passed,f"{test_id}: {result.assertion}: {result.observed}")
    return test


for _number in range(1,38):
    setattr(R6RegressionTests,f"test_r6_rg_{_number:02d}",_make(f"R6-RG-{_number:02d}"))
