diff options
author | James Landrein <james.landrein@gmail.com> | 2022-10-25T11·56+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-10-28T10·21+0000 |
commit | ccab9c06a2f01353b8a91469d46a498a75961431 (patch) | |
tree | c92cc00b809b24cd5da2f52aa4cb70ae728ad84a /tvix/eval/src/tests/tvix_tests/eval-okay-builtins-replaceStrings.nix | |
parent | 3aec6786798d6ffd5e5eb5b205827b92b6185f1d (diff) |
feat(tvix/eval): add builtins.replaceStrings r/5219
Change-Id: I93dcdaeb101364ee2273bcaeb19acb57cf6b9e7d Reviewed-on: https://cl.tvl.fyi/c/depot/+/7034 Autosubmit: j4m3s <james.landrein@gmail.com> Reviewed-by: Adam Joseph <adam@westernsemico.com> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-builtins-replaceStrings.nix')
-rw-r--r-- | tvix/eval/src/tests/tvix_tests/eval-okay-builtins-replaceStrings.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-replaceStrings.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-replaceStrings.nix new file mode 100644 index 000000000000..b8101c448bb0 --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-replaceStrings.nix @@ -0,0 +1,5 @@ +[ + (builtins.replaceStrings ["oo" "a"] ["a" "i"] "foobar") + (builtins.replaceStrings ["o"] ["a"] "a") + (builtins.replaceStrings ["" ""] ["1" "2"] "a") +] |