def test_number_re(self) -> None:
    _number_re = _get_checker()._number_re
    for s in ['1.', '+1.', '-1.', '.1', '+.1', '-.1', '0.1', '+0.1', '-0.1', '1e5', '+1e5', '1e+5', '+1e+5', '1e-5', '+1e-5', '-1e-5', '1.2e3', '-1.2e-3']:
        print(s)
        m = _number_re.match(s)
        assert (m is not None)
        assert (float(m.group()) == pytest.approx(float(s)))
    for s in ['1', 'abc']:
        print(s)
        assert (_number_re.match(s) is None)
def test_number_re(self) -> None:
    _number_re = _get_checker()._number_re
    for s in ['1.', '+1.', '-1.', '.1', '+.1', '-.1', '0.1', '+0.1', '-0.1', '1e5', '+1e5', '1e+5', '+1e+5', '1e-5', '+1e-5', '-1e-5', '1.2e3', '-1.2e-3']:
        print(s)
        m = _number_re.match(s)
        assert (m is not None)
        assert (float(m.group()) == pytest.approx(float(s)))
    for s in ['1', 'abc']:
        print(s)
        assert (_number_re.match(s) is None)