mirror of
https://github.com/NixOS/nix-pills
synced 2024-09-19 04:00:13 -04:00
Split test.nix contents from repl screen output
This commit is contained in:
parent
ddcdca208e
commit
1762d6b13a
|
@ -287,7 +287,10 @@ xml:id="functions-and-imports">
|
|||
<filename>test.nix</filename>:
|
||||
</para>
|
||||
|
||||
<screen><xi:include href="./05/test-nix-2.txt" parse="text" /></screen>
|
||||
<programlisting><xi:include href="./05/test-nix-2.txt" parse="text"
|
||||
/></programlisting>
|
||||
|
||||
<screen><xi:include href="./05/test-import-2.txt" parse="text" /></screen>
|
||||
|
||||
|
||||
<para>
|
||||
|
|
3
pills/05/test-import-2.txt
Normal file
3
pills/05/test-import-2.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
nix-repl> import ./test.nix { a = 5; trueMsg = "ok"; }
|
||||
trace: ok
|
||||
true
|
|
@ -2,6 +2,3 @@
|
|||
if a > b
|
||||
then builtins.trace trueMsg true
|
||||
else builtins.trace falseMsg false
|
||||
nix-repl> import ./test.nix { a = 5; trueMsg = "ok"; }
|
||||
trace: ok
|
||||
true
|
Loading…
Reference in a new issue