From 478af112e83df806bd8a51174834d2a130fbdeb9 Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Tue, 7 Aug 2018 18:44:58 +0200 Subject: [PATCH] lib/tests/modules: add a test for the functionTo type --- lib/tests/modules.sh | 3 +++ lib/tests/modules/functionTo.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 lib/tests/modules/functionTo.nix diff --git a/lib/tests/modules.sh b/lib/tests/modules.sh index b83e1eb7d82d..a33639ab8dd0 100755 --- a/lib/tests/modules.sh +++ b/lib/tests/modules.sh @@ -149,6 +149,9 @@ checkConfigOutput "1 2 3 4 5 6 7 8 9 10" config.result ./loaOf-with-long-list.ni # Check loaOf with many merges of lists. checkConfigOutput "1 2 3 4 5 6 7 8 9 10" config.result ./loaOf-with-many-list-merges.nix +# Check the merge behaviour of the functionTo type. +checkConfigOutput "a b" config.result ./functionTo.nix + cat <