Skip to content

[core] Add Property[String] assertion message - #5459

Merged
seldridge merged 4 commits into
ci/ci-circt-nightlyfrom
dev/seldridge/property-assert-property-message
Aug 12, 2026
Merged

[core] Add Property[String] assertion message#5459
seldridge merged 4 commits into
ci/ci-circt-nightlyfrom
dev/seldridge/property-assert-property-message

Conversation

@seldridge

Copy link
Copy Markdown
Member

Add an alternative property assertion API which takes a Property[String]
message. This builds towards allowing for string interpolation in
property assertion messages. Due to the limited availability of property
operations, this is relatively limited in power and very verbose. More
operations (e.g., number to string formatting) and better ergonomics are
planned.

Assisted-by: pi.dev:gpt-5.6-luna

Release Notes

  • Add a property assertion API which takes a property string message (as opposed
    to a Scala string) to allow for more dynamic assertion messages. The existing
    Scala string assert message API is preserved.

@seldridge seldridge added the Feature New feature, will be included in release notes label Aug 11, 2026
@seldridge
seldridge requested a review from jackkoenig August 11, 2026 16:02
@seldridge
seldridge changed the base branch from main to ci/ci-circt-nightly August 11, 2026 16:05
Add an alternative property assertion API which takes a `Property[String]`
message.  This builds towards allowing for string interpolation in
property assertion messages.  Due to the limited availability of property
operations, this is relatively limited in power and very verbose.  More
operations (e.g., number to string formatting) and better ergonomics are
planned.

Assisted-by: pi.dev:gpt-5.6-luna
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
Fix an issue where infix `++` did not work for `Property[String]` because
this would fallback to the list version (which also has the same infix
operator).

Assisted-by: pi.dev:gpt-5.6-luna
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
@seldridge
seldridge force-pushed the dev/seldridge/property-assert-property-message branch from 4634e1f to 5573bcc Compare August 12, 2026 01:38
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
@seldridge
seldridge marked this pull request as ready for review August 12, 2026 17:24

@jackkoenig jackkoenig left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@seldridge
seldridge merged commit fa5caf6 into ci/ci-circt-nightly Aug 12, 2026
27 of 29 checks passed
@seldridge
seldridge deleted the dev/seldridge/property-assert-property-message branch August 12, 2026 21:00
github-actions Bot pushed a commit that referenced this pull request Aug 13, 2026
Add an alternative property assertion API which takes a `Property[String]`
message.  This builds towards allowing for string interpolation in
property assertion messages.  Due to the limited availability of property
operations, this is relatively limited in power and very verbose.  More
operations (e.g., number to string formatting) and better ergonomics are
planned.

Fix an issue where infix `++` did not work for `Property[String]` because
this would fallback to the list version (which also has the same infix
operator).

Assisted-by: pi.dev:gpt-5.6-luna
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
seldridge added a commit that referenced this pull request Aug 14, 2026
Add an alternative property assertion API which takes a `Property[String]`
message.  This builds towards allowing for string interpolation in
property assertion messages.  Due to the limited availability of property
operations, this is relatively limited in power and very verbose.  More
operations (e.g., number to string formatting) and better ergonomics are
planned.

Fix an issue where infix `++` did not work for `Property[String]` because
this would fallback to the list version (which also has the same infix
operator).

Assisted-by: pi.dev:gpt-5.6-luna
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature, will be included in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants