about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-hasattr.nix
blob: e87e186b641d01ad3c2f8e7b601f32391796ffd1 (plain) (blame)
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; })
]