From e6c2affa134e8a1b2f52d602b5ed601427fffc15 Mon Sep 17 00:00:00 2001 From: Grant Wickman Date: Thu, 14 May 2026 00:48:05 +0100 Subject: [PATCH] feat: add DEFAULT_LANGUAGE constant to constants module (BL-020) - Add DEFAULT_LANGUAGE: str = "en" as third module-level constant - Add test_default_language_value() and test_default_language_type() assertions - Update README.md and CHANGELOG.md - All quality gates pass (ruff, mypy strict, pytest) This is the third test-rig probe validating Phase C of the README discipline migration. Mirrors BL-018 (v004) and BL-019 (v005) patterns to isolate prompt-suite improvements. BL-020 acceptance criteria: All 5 ACs satisfied --- README.md | 2 +- docs/CHANGELOG.md | 6 ++++++ src/test_target_2/constants.py | 1 + tests/test_constants.py | 10 ++++++++++ 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e5b9017..70c2bc3 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,4 @@ - **string_utils** — String manipulation utilities: slugify, truncate, case conversion (snake_case, camelCase, PascalCase), and more. - **math_utils** — Math utilities: clamp, lerp, safe_divide, remap, and more. - **collection_utils** — Collection utilities: chunk, flatten, unique_by, group_by, partition, compact. -- **constants** — Package-level constants (DEFAULT_HELLO_TARGET, DEFAULT_FAREWELL). +- **constants** — Package-level constants (DEFAULT_HELLO_TARGET, DEFAULT_FAREWELL, DEFAULT_LANGUAGE). diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 68d359e..436b586 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [v006] - 2026-05-14 + +### Added +- `DEFAULT_LANGUAGE: str = "en"` constant to `constants` module (BL-020) +- Test functions `test_default_language_value` and `test_default_language_type` in `test_constants.py` + ## [v005] - 2026-05-13 ### Added diff --git a/src/test_target_2/constants.py b/src/test_target_2/constants.py index 75bc36f..c123c6f 100644 --- a/src/test_target_2/constants.py +++ b/src/test_target_2/constants.py @@ -2,3 +2,4 @@ DEFAULT_HELLO_TARGET: str = "world" DEFAULT_FAREWELL: str = "goodbye" +DEFAULT_LANGUAGE: str = "en" diff --git a/tests/test_constants.py b/tests/test_constants.py index a6599dd..e4c229c 100644 --- a/tests/test_constants.py +++ b/tests/test_constants.py @@ -25,3 +25,13 @@ def test_default_farewell_value() -> None: def test_default_farewell_type() -> None: assert isinstance(constants.DEFAULT_FAREWELL, str) + + +def test_default_language_value() -> None: + """DEFAULT_LANGUAGE has expected value.""" + assert constants.DEFAULT_LANGUAGE == "en" + + +def test_default_language_type() -> None: + """DEFAULT_LANGUAGE is string type.""" + assert isinstance(constants.DEFAULT_LANGUAGE, str)