Skip to content

Tags: xemantic/xemantic-kotlin-test

Tags

v1.17.5

Toggle v1.17.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: detect CRLF-only string differences and report clear error messa…

…ge (#74)

* fix: detect CRLF-only string differences and report clear error message

When two strings differ only in line endings (CRLF vs LF), the diff
normalization produces zero hunks, resulting in a confusing empty diff.
Now sameAs detects this case early and fails with a descriptive message
indicating which side uses CRLF vs LF.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: make all CRLF detection branches explicit and tested

Split the catch-all else branch into two specific cases:
- standalone \r characters (neither string contains \r\n)
- mixed CRLF/LF line endings (both strings contain \r\n)

Each branch now has a descriptive message and a dedicated test.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

v1.17.4

Toggle v1.17.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: normalize CRLF line endings in sameAs diff output (#73)

* fix: normalize CRLF line endings in sameAs diff output

Strip trailing \r from each line in splitLinesForDiff so that strings
with CRLF (\r\n) line endings produce readable unified diff output.
Previously, the raw \r caused terminal cursor to jump to column 0,
overwriting the -/+ diff prefixes and making the output unreadable.

Fixes #72

Co-authored-by: Kazik Pogoda <morisil@users.noreply.github.com>

* improved test cases

* test fix

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Kazik Pogoda <morisil@users.noreply.github.com>

v1.17.3

Toggle v1.17.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add sameAsHtml and sameAsXml assertions, update dependencies (#70)

* Add sameAsHtml and sameAsXml assertions with IDE language injection, update dependencies

Add sameAsHtml and sameAsXml infix functions that delegate to sameAs while providing
@language annotations for HTML/XML IDE support (syntax highlighting, completion).
Includes tests for both new assertions.

Update Kotlin 2.2→2.3, kotlinx-serialization 1.9→1.10, maven-publish 0.35→0.36,
Gradle 9.2.1→9.3.1.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Update yarn.lock for Kotlin 2.3 dependency changes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Update API dump for sameAsHtml and sameAsXml

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

v1.17.2

Toggle v1.17.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Refactor GitHub workflows to use reusable workflows and add Claude Co…

…de (#68)

* Use PR for post-release version updates instead of direct push

Split release workflow into two jobs:
- build_release: builds and publishes to Maven Central
- update_versions: creates PR for version updates

This change respects branch protection rules that prevent direct
pushes to main.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Refactor GitHub workflows to use reusable workflows and add Claude Code

- Replace build-branch.yml with build-pr.yml using reusable workflow
- Refactor build-main.yml and build-release.yml to use xemantic/.github reusable workflows
- Add claude-code.yml for issue/PR @claude mentions
- Add claude-code-review.yml for automated PR reviews
- Remove obsolete junie.yml and updater.yml workflows
- Downgrade Kotlin to 2.2.21 for stability

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* yarn.lock update

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

v1.17.1

Toggle v1.17.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Use PR for post-release version updates instead of direct push (#66)

Split release workflow into two jobs:
- build_release: builds and publishes to Maven Central
- update_versions: creates PR for version updates

This change respects branch protection rules that prevent direct
pushes to main.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

v1.17.0

Toggle v1.17.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add beOrderedBy assertion for checking iterable ordering (#65)

* Add beOrderedBy assertion for checking iterable ordering

Adds an infix function that verifies an iterable is sorted by a given
selector. Includes comprehensive test coverage for ordered lists, empty
lists, single elements, and failure cases.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Update API definition for beOrderedBy

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

v1.16.0

Toggle v1.16.0's commit message
github build scripts updated

v1.15.2

Toggle v1.15.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add JSON syntax highlighting support to sameAsJson function (#53)

Added @language("json") annotation to the expected parameter of sameAsJson function to enable JSON syntax highlighting in IDEs. This improves developer experience by providing syntax highlighting and validation for JSON strings in test assertions.

Changes:
- Added jetbrains-annotations dependency (version 26.0.2-1)
- Applied @language("json") annotation to sameAsJson expected parameter
- Imported org.intellij.lang.annotations.Language

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>

v1.15.1

Toggle v1.15.1's commit message
reverting back jreleaser, to release again

v1.15.0

Toggle v1.15.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update dependencies to latest versions (#52)

- Update Kotlin to 2.2.21
- Update JReleaser plugin to 1.21.0
- Update Gradle wrapper to 9.2.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>