snix/tvix/eval/src/tests
William Carroll 2fe18e4486 feat(tvix/eval): Support builtins.substring
Nix's `builtins.substring`:
- doesn't accept negative indexes for `beg` or `end`. Compare the error messages
  for:
  - `builtins.substring -3  5 "testing"`
  - `builtins.substring  3 -5 "testing"`
  - `builtins.substring -3 -5 "testing"`
- returns an empty string when `beg >= end`
- allows `end` to exceed the length of the input string

Change-Id: I83af7a099d81b6d537ebe5029d946c7031cb7113
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6555
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
2022-09-19 00:51:10 +00:00
..
nix_tests fix(tvix/eval): correctly escape ${ in strings 2022-09-03 00:47:58 +00:00
tvix_tests feat(tvix/eval): Support builtins.substring 2022-09-19 00:51:10 +00:00
mod.rs refactor(tvix/eval): use Clap for arg+env parsing 2022-09-18 22:08:43 +00:00