lix/tests/unit/libexpr
eldritch horrors 1958152d14 Pretty-print values in the REPL
Pretty-print values in the REPL by printing each item in a list or
attrset on a separate line. When possible, single-item lists and
attrsets are printed on one line, as long as they don't contain a nested
list, attrset, or thunk.

Before:
```
{ attrs = { a = { b = { c = { }; }; }; }; list = [ 1 ]; list' = [ 1 2 3 ]; }
```

After:
```
{
  attrs = {
    a = {
      b = {
        c = { };
      };
    };
  };
  list = [ 1 ];
  list' = [
    1
    2
    3
  ];
}
```

(cherry picked from commit c0a15fb7d03dfb8f53bc6726c414bc88aa362592)
Change-Id: Ia2b41849165a5ddb63f7a8c272a2476b3e4292df
2024-03-09 07:20:23 -07:00
..
value Pretty-print values in the REPL 2024-03-09 07:20:23 -07:00
derived-path.cc Move tests to separate directories, and document 2023-12-01 13:05:03 -05:00
error_traces.cc Merge pull request #9925 from 9999years/fmt-cleanup 2024-03-09 07:00:13 -07:00
flakeref.cc Move tests to separate directories, and document 2023-12-01 13:05:03 -05:00
json.cc Move tests to separate directories, and document 2023-12-01 13:05:03 -05:00
local.mk Move tests to separate directories, and document 2023-12-01 13:05:03 -05:00
primops.cc Merge pull request #4093 from matthewbauer/eval-system 2024-03-04 07:21:01 +01:00
search-path.cc Move tests to separate directories, and document 2023-12-01 13:05:03 -05:00
trivial.cc Move tests to separate directories, and document 2023-12-01 13:05:03 -05:00