forked from lix-project/lix
eldritch horrors
c26599b143
using the total-attrs-printed and total-list-items-printed counters to
calculate how many attrs were elided only works properly if no nesting
is involved. once things do nest the global counter can exceed the size
of the currently printed object, leading to unsigned wrapping and great
overestimation of elided counts. counting locally in addition to global
counts fixes this.
these are functional tests because creating these objects requires the
evaluator to not be a huge amount of code, and we also want defaults to
be tested for cli usage.
fixes #14
Change-Id: Icb9a0cb21b2f4bacbc5e9dcdd8c0b9055b4088a7
12 lines
637 B
Text
12 lines
637 B
Text
error:
|
|
… in the condition of the assert statement
|
|
at /pwd/lang/eval-fail-print-limit-set.nix:1:1:
|
|
1| assert (
|
|
| ^
|
|
2| let x = { a.a.a.a.a.a.a.a.a = { a.a = 1; b = 2; }; a.b.c.x = 3; c = 4; };
|
|
|
|
error: expected a Boolean but found a set: { a = { a = { a = { a = { a = { a = { a = { a = { a = { a = { ... }; b = 2; }; }; }; }; }; }; }; }; «1 attribute elided» }; «1 attribute elided» }
|
|
at /pwd/lang/eval-fail-print-limit-set.nix:1:1:
|
|
1| assert (
|
|
| ^
|
|
2| let x = { a.a.a.a.a.a.a.a.a = { a.a = 1; b = 2; }; a.b.c.x = 3; c = 4; };
|