Add a test to ensure that we report infinite recursion

This commit is contained in:
John Wiegley 2019-03-10 14:19:15 -07:00
parent af9f69d517
commit dc12cdf92e
No known key found for this signature in database
GPG Key ID: C144D8F4F19FE630
1 changed files with 3 additions and 0 deletions

View File

@ -133,6 +133,9 @@ case_find_file_failure_invalid_arg_2 =
case_find_file_failure_invalid_arg_no_path =
assertNixEvalThrows "builtins.findFile [{ prefix=\"\"; }] \"files\""
case_infinite_recursion =
assertNixEvalThrows "let foo = a: bar a; bar = a: foo a; in foo 3"
case_inherit_in_rec_set =
constantEqualText "1" "let x = 1; in (rec { inherit x; }).x"