lunarmodules / luassert

Assertion library for Lua
MIT License
202 stars 76 forks source link

Don't hide nested tables when showing values marked with crumbs #147

Closed mpeterv closed 5 years ago

mpeterv commented 7 years ago

When comparing two deep tables and there are minor differences, luassert helpfully marks keys on the path to different value with asterisks, but unhelpfully applies depth limit anyway, replacing subtables with { ... more }. It would be nice if depth limit wasn't applied to values marked with crumbs.

Tieske commented 7 years ago

you can use a parameter to configure the table depth; https://github.com/Olivine-Labs/luassert#configuring-table-depth-display

but that works for the entire table, not only the marked entries

mpeterv commented 7 years ago

Yes, using that parameter isn't very helpful for large. nested tables (think comparing AST nodes).

DorianGray commented 5 years ago

please re-open if this is still relevant