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









                                                                                
[
  (builtins.stringLength "foo")
  (let s = "hello"; in (builtins.substring 0 (builtins.stringLength s) s))
  (builtins.stringLength ("foo" + "${"bar" + "baz"}"))

  # feel free to delete this test case at any time, it's just to show: This is a
  # thing at the moment. We may want to break compatibility with this aspect of
  # the C++ Nix implementation at any time.
  (builtins.stringLength "😀")
]