about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-substring.nix
blob: f4ee82e2736f682ea0af320ad34e794637072efe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[
  (builtins.substring 0 3 "testing")
  (builtins.substring 0 300 "testing")
  (builtins.substring 3 0 "testing")
  (builtins.substring 1 5 "testing")
  (builtins.substring 3 5 "testing")
  (builtins.substring 300 300 "testing")
  (builtins.substring 301 300 "testing")
  (builtins.substring 0 0 "")
  (builtins.substring 0 1 "")
  (builtins.substring (builtins.add 0 1) 3 "testing")
  (builtins.substring 1 (builtins.add 3 0) "testing")
  (builtins.substring (builtins.add 0 1) (builtins.add 3 0) "testing")
  (builtins.substring (builtins.add 0 1) (builtins.add 3 0) "testing")
  (builtins.substring (builtins.add 0 1) (builtins.add 3 0) ("test" + "ing"))
  (builtins.substring (builtins.add 0 1) (builtins.add 3 0) ("test" + "ing"))
  (builtins.substring 300 (-10) "testing")
]