mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-21 21:46:15 +02:00
tests/functional/repl: Characterize side effecting print behavior
Reported on matrix by aleksana: https://matrix.to/#/!VRULIdgoKmKPzJZzjj:nixos.org/$7wZp5lUDTd-_u6MYo8kWWcysjtqTiQqP8dLI0RDNVVM?via=nixos.org&via=matrix.org&via=nixos.dev
This commit is contained in:
parent
b230c01f73
commit
ece334b532
3 changed files with 61 additions and 0 deletions
33
tests/functional/repl/pretty-print-idempotent.expected
Normal file
33
tests/functional/repl/pretty-print-idempotent.expected
Normal file
|
@ -0,0 +1,33 @@
|
|||
Nix <nix version>
|
||||
Type :? for help.
|
||||
Added <number omitted> variables.
|
||||
|
||||
{
|
||||
homepage = "https://example.com";
|
||||
}
|
||||
|
||||
{ homepage = "https://example.com"; }
|
||||
|
||||
{
|
||||
layerOne = { ... };
|
||||
}
|
||||
|
||||
{
|
||||
layerOne = { ... };
|
||||
}
|
||||
|
||||
[
|
||||
"https://example.com"
|
||||
]
|
||||
|
||||
[ "https://example.com" ]
|
||||
|
||||
[
|
||||
[ ... ]
|
||||
]
|
||||
|
||||
[
|
||||
[ ... ]
|
||||
]
|
||||
|
||||
|
9
tests/functional/repl/pretty-print-idempotent.in
Normal file
9
tests/functional/repl/pretty-print-idempotent.in
Normal file
|
@ -0,0 +1,9 @@
|
|||
:l pretty-print-idempotent.nix
|
||||
oneDeep
|
||||
oneDeep
|
||||
twoDeep
|
||||
twoDeep
|
||||
oneDeepList
|
||||
oneDeepList
|
||||
twoDeepList
|
||||
twoDeepList
|
19
tests/functional/repl/pretty-print-idempotent.nix
Normal file
19
tests/functional/repl/pretty-print-idempotent.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
oneDeep = {
|
||||
homepage = "https://" + "example.com";
|
||||
};
|
||||
twoDeep = {
|
||||
layerOne = {
|
||||
homepage = "https://" + "example.com";
|
||||
};
|
||||
};
|
||||
|
||||
oneDeepList = [
|
||||
("https://" + "example.com")
|
||||
];
|
||||
twoDeepList = [
|
||||
[
|
||||
("https://" + "example.com")
|
||||
]
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue