From 9c7d8e791af7f6bfd4e518120cef4e36ba087fd6 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Tue, 18 Oct 2022 21:54:38 -0700 Subject: test(tvix/eval): add a test case for groupBy with thunks We have to be careful implementing `builtins.groupBy`, since the list may contain thunks, and tvix's to_xxx() functions do not work on thunks. Signed-off-by: Adam Joseph Change-Id: I182b6fc2d4296f864ed16744ef70b153e8e6978a Reviewed-on: https://cl.tvl.fyi/c/depot/+/7039 Reviewed-by: tazjin Tested-by: BuildkiteCI --- tvix/verify-lang-tests/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tvix/verify-lang-tests/default.nix') diff --git a/tvix/verify-lang-tests/default.nix b/tvix/verify-lang-tests/default.nix index ca7ea4b348a2..b526085bb97e 100644 --- a/tvix/verify-lang-tests/default.nix +++ b/tvix/verify-lang-tests/default.nix @@ -56,6 +56,8 @@ let "eval-okay-compare-lists.nix" = [ nix ]; # getAttrPos gains support for functionArgs-returned sets after 2.3 "eval-okay-getattrpos-functionargs.nix" = [ nix ]; + # groupBy appeared (long) after 2.3 + "eval-okay-builtins-groupby-thunk.nix" = [ nix ]; }; runCppNixLangTests = cpp-nix: -- cgit 1.4.1