{"id":32779354,"url":"https://github.com/ghtaarn/deepequals.jl","last_synced_at":"2026-02-24T21:31:28.734Z","repository":{"id":254054268,"uuid":"840135629","full_name":"GHTaarn/DeepEquals.jl","owner":"GHTaarn","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-11T18:23:30.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-04T16:09:52.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","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/GHTaarn.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-09T03:43:02.000Z","updated_at":"2025-01-11T17:56:34.000Z","dependencies_parsed_at":"2024-08-21T05:46:14.585Z","dependency_job_id":null,"html_url":"https://github.com/GHTaarn/DeepEquals.jl","commit_stats":null,"previous_names":["ghtaarn/deepequals.jl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GHTaarn/DeepEquals.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GHTaarn%2FDeepEquals.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GHTaarn%2FDeepEquals.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GHTaarn%2FDeepEquals.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GHTaarn%2FDeepEquals.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GHTaarn","download_url":"https://codeload.github.com/GHTaarn/DeepEquals.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GHTaarn%2FDeepEquals.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29801021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T21:02:39.706Z","status":"ssl_error","status_checked_at":"2026-02-24T21:02:21.834Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-11-04T16:05:47.370Z","updated_at":"2026-02-24T21:31:28.728Z","avatar_url":"https://github.com/GHTaarn.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DeepEquals\n\nA package for doing customised comparison of objects, especially focussed on\nitemwise comparison of composite objects.\n\n## Installation\n\n```\nusing Pkg\npkg\"add https://github.com/GHTaarn/DeepEquals.jl\"\n```\n\n## Use\n\nThere are two exported symbols:\n - `deepequals` which is a versatile comparison function\n - `≗` - a binary operator version of `deepequals` that handles `NaN` and `missing` values in a similar way to `Base.isequal`\n\nThe `≗` operator is specialised to handle the situation where one has\ncalculated a result and wants to check if it is equal to a benchmark result\nthat has been calculated in a slightly different way.\nBy default, the `≗` operator will handle simple cases correctly and can be\ntweaked if necessary.\n\nIn the REPL `≗` can be typed with `\\circeq` followed by pressing the `Tab` key.\nIt has Unicode codepoint 0x2257.\n\n### Example\n\n```julia-repl\njulia\u003e using DeepEquals\n\njulia\u003e struct A\n       a\n       b\n       end\n\njulia\u003e A(1,[2,3]) == A(1,[2,3])\nfalse\n\njulia\u003e A(1,[2,3]) ≗ A(1,[2,3])\ntrue\n\njulia\u003e A(A(missing,[2,NaN]),-0.0) ≗ A(A(missing,[2,NaN]),0.0)\ntrue\n\njulia\u003e deepequals(A(1,[2,NaN]), A(1,[2,NaN])) do x, y\n       x == y || (all(typeof.([x,y]) .\u003c: AbstractFloat) \u0026\u0026 all(isnan.([x,y])))\n       end\ntrue\n\njulia\u003e \n```\n\n## Related packages\n\n[StructEquality.jl](https://github.com/jolin-io/StructEquality.jl) is a good\npackage for generating `==`, `isequal` and `isapprox` methods for structs.\n`DeepEquals.jl` is preferable when one wishes to do specialised comparisons\nthat do not easily translate to `==`, `isequal` or `isapprox`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghtaarn%2Fdeepequals.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghtaarn%2Fdeepequals.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghtaarn%2Fdeepequals.jl/lists"}