How to use the proselint.checks.dates_times.dates.check_decade_apostrophes_long function in proselint

To help you get started, we’ve selected a few proselint examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github amperser / proselint / tests / test_dates_times_dates.py View on Github external
def test_smoke_check_decade_apostrophes_long(self):
        """Basic smoke test.

        This is for the function
        dates_times.dates.decade_apostrophes_long.

        """
        assert chk.check_decade_apostrophes_long(
            "Basic smoke phrase without issues.") == []
        assert chk.check_decade_apostrophes_long(
            "It happened in the 1980s.") == []
        assert chk.check_decade_apostrophes_long(
            "It happened in the 1980's.") != []
github amperser / proselint / tests / test_dates_times_dates.py View on Github external
def test_smoke_check_decade_apostrophes_long(self):
        """Basic smoke test.

        This is for the function
        dates_times.dates.decade_apostrophes_long.

        """
        assert chk.check_decade_apostrophes_long(
            "Basic smoke phrase without issues.") == []
        assert chk.check_decade_apostrophes_long(
            "It happened in the 1980s.") == []
        assert chk.check_decade_apostrophes_long(
            "It happened in the 1980's.") != []
github amperser / proselint / tests / test_dates_times_dates.py View on Github external
def test_smoke_check_decade_apostrophes_long(self):
        """Basic smoke test.

        This is for the function
        dates_times.dates.decade_apostrophes_long.

        """
        assert chk.check_decade_apostrophes_long(
            "Basic smoke phrase without issues.") == []
        assert chk.check_decade_apostrophes_long(
            "It happened in the 1980s.") == []
        assert chk.check_decade_apostrophes_long(
            "It happened in the 1980's.") != []