about summary refs log blame commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-hasattr.nix
blob: fb786b4f09e08550dcd0d0c6974c9aff4784a202 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                         
                              


                                                   
[
  (builtins.hasAttr "foo" { foo = 1; bar = 2; baz = 3; })
  (builtins.hasAttr "bar" { foo = 1; bar = 2; baz = 3; })
  (builtins.hasAttr "baz" { foo = 1; bar = 2; baz = 3; })
  (builtins.hasAttr "FOO" { foo = 1; bar = 2; baz = 3; })
  (builtins.hasAttr "foo" { })
  (builtins.hasAttr ("f" + "o" + "o") { foo = 1; })
  (builtins.hasAttr ("b" + "a" + "r") { foo = 1; })
]