From 65c1ecf367f4f1eb50f4f941b75e14162b6bceb2 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Wed, 7 Aug 2019 13:50:41 -0400 Subject: [PATCH] Test an already-working case as a form of documentation --- nixos/lib/tests/test_ini.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/lib/tests/test_ini.nix b/nixos/lib/tests/test_ini.nix index e0053115..c9fb90b7 100644 --- a/nixos/lib/tests/test_ini.nix +++ b/nixos/lib/tests/test_ini.nix @@ -56,4 +56,9 @@ ini: { expected = "x = 12345\n"; expr = ini.oneConfigItemText "x" 12345; }; + + test_dotted_key = + { expected = "x.y = z\n"; + expr = ini.oneConfigItemText "x.y" "z"; + }; } -- GitLab