metarhia / metatests

Extremely simple to use test framework and runner for Metarhia technology stack 🧪
https://metarhia.com
Other
18 stars 4 forks source link

Compare objects with circular references #183

Closed ivan-tymoshenko closed 5 years ago

lundibundi commented 5 years ago

If the object refer to each other then it's possible to use strictSame/same for that, in order to compare with topology (objects reference themselves in the same way) it's possible to use new sameTopology (https://github.com/metarhia/metatests/commit/58eaf2d5cfae853ed84592b658d4b7a9be759d02).