{"id":24810792,"url":"https://github.com/yusukehosonuma/assert-diff","last_synced_at":"2025-10-13T12:31:19.020Z","repository":{"id":52468160,"uuid":"358139125","full_name":"YusukeHosonuma/assert-diff","owner":"YusukeHosonuma","description":"Assert equals with readable diff report for Crystal.","archived":false,"fork":false,"pushed_at":"2021-04-28T07:45:56.000Z","size":724,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T10:12:47.835Z","etag":null,"topics":["assert","crystal","diff","test"],"latest_commit_sha":null,"homepage":"https://yusukehosonuma.github.io/assert-diff/","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YusukeHosonuma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-15T05:33:52.000Z","updated_at":"2025-02-21T20:00:28.000Z","dependencies_parsed_at":"2022-08-18T23:10:35.745Z","dependency_job_id":null,"html_url":"https://github.com/YusukeHosonuma/assert-diff","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/YusukeHosonuma/assert-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeHosonuma%2Fassert-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeHosonuma%2Fassert-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeHosonuma%2Fassert-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeHosonuma%2Fassert-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YusukeHosonuma","download_url":"https://codeload.github.com/YusukeHosonuma/assert-diff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeHosonuma%2Fassert-diff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015056,"owners_count":26085643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assert","crystal","diff","test"],"created_at":"2025-01-30T12:18:03.881Z","updated_at":"2025-10-13T12:31:18.642Z","avatar_url":"https://github.com/YusukeHosonuma.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# assert-diff\n[![CI](https://github.com/YusukeHosonuma/assert-diff/actions/workflows/main.yaml/badge.svg)](https://github.com/YusukeHosonuma/assert-diff/actions/workflows/main.yaml)\n[![Docs](https://img.shields.io/badge/docs-available-brightgreen.svg)](https://yusukehosonuma.github.io/assert-diff/)\n[![GitHub release](https://img.shields.io/github/release/YusukeHosonuma/assert-diff.svg)](https://github.com/YusukeHosonuma/assert-diff/releases)\n\nAssert equals with readable diff report.\n\n![screenshot](https://github.com/YusukeHosonuma/assert-diff/raw/main/image/screenshot.png)\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   development_dependencies:\n     assert-diff:\n       github: YusukeHosonuma/assert-diff\n       branch: main\n   ```\n\n2. Run `shards install`\n\n## Example\n\nUse in specs:\n\n```crystal\nrequire \"assert-diff\"\n\ndescribe \"README.md\" do\n  it \"example\" do\n    expected = Rectangle.new(Point.new(0, 1), 4, 7, \"One\\nTwo\\nThree\\nFour\")\n    actual = Rectangle.new(Point.new(0, 0), 4, 3, \"Zero\\nOne\\nTwo!!\\nThree\")\n\n    actual.should eq_diff expected # or use `eq_full_diff`\n  end\nend\n```\n\nor use `assert_diff` and `assert_diff_full`.\n\n```crystal\nassert_diff(before, after)\nassert_diff_full(before, after)\n```\n\nUse to output:\n\n```crystal\nprint_diff(before, after)\nprint_diff_full(before, after)\n```\n\n## Contributing\n\nI don't think it can be used for edge cases.  \nIssues and PRs are welcome.\n\n1. Fork it (\u003chttps://github.com/YusukeHosonuma/assert-diff/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Yusuke Hosonuma](https://github.com/YusukeHosonuma) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusukehosonuma%2Fassert-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusukehosonuma%2Fassert-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusukehosonuma%2Fassert-diff/lists"}