forked from lix-project/lix
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
10 lines
479 B
Plaintext
10 lines
479 B
Plaintext
error:
|
|
… while evaluating a path segment
|
|
at /pwd/lang/eval-fail-bad-string-interpolation-4.nix:9:3:
|
|
8| # The error message should not be too long.
|
|
9| ''${pkgs}''
|
|
| ^
|
|
10|
|
|
|
|
error: cannot coerce a set to a string: { a = { a = { a = { a = "ha"; b = "ha"; c = "ha"; d = "ha"; e = "ha"; f = "ha"; g = "ha"; h = "ha"; j = "ha"; }; «8 attributes elided» }; «8 attributes elided» }; «8 attributes elided» }
|