1
0
Fork 0
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:
Fatih Altinok 2017-10-22 13:47:53 +03:00
parent ddcdca208e
commit 1762d6b13a
3 changed files with 7 additions and 4 deletions

View file

@ -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>

View file

@ -0,0 +1,3 @@
nix-repl> import ./test.nix { a = 5; trueMsg = "ok"; }
trace: ok
true

View file

@ -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