Skip to content

Date comparison assserts#585

Draft
Chemaclass wants to merge 3 commits intomainfrom
feat/date-comparison-assserts
Draft

Date comparison assserts#585
Chemaclass wants to merge 3 commits intomainfrom
feat/date-comparison-assserts

Conversation

@Chemaclass
Copy link
Member

@Chemaclass Chemaclass commented Feb 6, 2026

📚 Description

Add date comparison assertions to bashunit, enabling tests to compare epoch-second timestamps. Five new assertions are introduced: assert_date_equals, assert_date_before, assert_date_after, assert_date_within_range, and assert_date_within_delta.

🔖 Changes

  • Add new src/assert_dates.sh with five date comparison assertion functions
  • Source assert_dates.sh from src/assertions.sh
  • Add unit tests for all new assertions in tests/unit/assert_dates_test.sh
  • Update CHANGELOG.md with the new feature

✅ To-do list

  • I updated the CHANGELOG.md to reflect the new feature or fix
  • I updated the documentation to reflect the changes

Add assert_date_equals, assert_date_before, assert_date_after,
assert_date_within_range and assert_date_within_delta using epoch
seconds for fully portable date comparisons.
@Chemaclass Chemaclass added the enhancement New feature or request label Feb 6, 2026
@Chemaclass Chemaclass self-assigned this Feb 6, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

✅ Contributor Report

User: @Chemaclass
Status: Passed (13/13 metrics passed)

Metric Description Value Threshold Status
PR Merge Rate PRs merged vs closed 93% >= 30%
Repo Quality Repos with ≥100 stars 6 >= 0
Positive Reactions Positive reactions received 155 >= 1
Negative Reactions Negative reactions received 0 <= 5
Account Age GitHub account age 4554 days >= 30 days
Activity Consistency Regular activity over time 108% >= 0%
Issue Engagement Issues with community engagement 0 >= 0
Code Reviews Code reviews given to others 174 >= 0
Merger Diversity Unique maintainers who merged PRs 7 >= 2
Repo History Merge Rate Merge rate in this repo 0.8823529411764706 >= 0
Repo History Min PRs Previous PRs in this repo 121 >= 0
Profile Completeness Profile richness (bio, followers) 100 >= 0
Suspicious Patterns Spam-like activity detection 0 N/A

Contributor Report evaluates based on public GitHub activity. Analysis period: 2025-02-06 to 2026-02-06

@Chemaclass Chemaclass marked this pull request as draft February 6, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant