From d7544f5c0d479845bf0f34db149df92a2df0f3e7 Mon Sep 17 00:00:00 2001 From: Daniel Krol Date: Sun, 5 Aug 2018 11:53:33 -0400 Subject: [PATCH] Adding tests for __overrides * `__overrides` key isn't sticking around in the resultant attribute sets * `inherit __overrides` blows up altogether (whereas it doesn't in nix) --- tests/EvalTests.hs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tests/EvalTests.hs b/tests/EvalTests.hs index 52fb65e..166dd86 100644 --- a/tests/EvalTests.hs +++ b/tests/EvalTests.hs @@ -142,6 +142,34 @@ case_inherit_from_set_has_no_scope = )).success |] +-- github/orblivion (2018-08-05): Adding these failing tests so we fix this feature + +-- case_overrides = +-- constantEqualText' "2" [i| +-- let +-- +-- overrides = { a = 2; }; +-- +-- in (rec { +-- __overrides = overrides; +-- x = a; +-- a = 1; +-- }.__overrides.a) +-- |] + +-- case_inherit_overrides = +-- constantEqualText' "2" [i| +-- let +-- +-- __overrides = { a = 2; }; +-- +-- in (rec { +-- inherit __overrides; +-- x = a; +-- a = 1; +-- }.__overrides.a) +-- |] + case_unsafegetattrpos1 = constantEqualText "[ 6 20 ]" [i| let e = 1;