about summary refs log blame commit diff
path: root/tests/lang/eval-okay-replacestrings.nix
blob: 6284a0e660ae364c9e6d7b1d5c0ee9ba1f4cd496 (plain) (tree)
1
2
3
4
5
6
7
8







                                                 
with builtins;

[ (replaceStrings ["o"] ["a"] "foobar")
  (replaceStrings ["o"] [""] "foobar")
  (replaceStrings ["oo"] ["u"] "foobar")
  (replaceStrings ["oo" "a"] ["a" "oo"] "foobar")
  (replaceStrings ["oo" "oo"] ["u" "i"] "foobar")
]