assert-diff
Version, currently 0.2.04 versions
- 0.4.0latestApr 21, 2021
- 0.3.0not indexedApr 28, 2021
- 0.2.0not indexedApr 28, 2021
- 0.1.0not indexedApr 28, 2021
github.com/YusukeHosonuma/assert-diff
Assert equals with readable diff report.
7 stars
0 dependents
License: MIT
Nothing has been indexed for 0.2.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
assert-diff:
github: YusukeHosonuma/assert-diff
version: ~> 0.2.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.2.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# assert-diff
[](https://github.com/YusukeHosonuma/assert-diff/actions/workflows/main.yaml)
[](https://yusukehosonuma.github.io/assert-diff/)
[](https://github.com/YusukeHosonuma/assert-diff/releases)
Assert equals with readable diff report.

## Installation
1. Add the dependency to your `shard.yml`:
```yaml
development_dependencies:
assert-diff:
github: YusukeHosonuma/assert-diff
branch: main
```
2. Run `shards install`
## Example
Use in specs:
```crystal
require "assert-diff"
describe "README.md" do
pending "example" do
expected = Rectangle.new(Point.new(0, 1), 4, 7, "One\nTwo\nThree\nFour")
actual = Rectangle.new(Point.new(0, 0), 4, 3, "Zero\nOne\nTwo!!\nThree")
actual.should eq_diff expected # or use `eq_full_diff`
end
end
```
or use `assert_diff` and `assert_diff_full`.
```crystal
assert_diff(before, after)
assert_diff_full(before, after)
```
Use to output:
```crystal
print_diff(before, after)
print_diff_full(before, after)
```
## Contributing
I don't think it can be used for edge cases.
Issues and PRs are welcome.
1. Fork it (<https://github.com/YusukeHosonuma/assert-diff/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Yusuke Hosonuma](https://github.com/YusukeHosonuma) - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.2.0- Tagged
- Apr 28, 2021
- Commit
e6817fd83a68- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/YusukeHosonuma/assert-diff
Metadata
- Created
- Aug 13, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 4