diff options
Diffstat (limited to 'tests/run/tcopy.nim')
-rwxr-xr-x | tests/run/tcopy.nim | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/run/tcopy.nim b/tests/run/tcopy.nim deleted file mode 100755 index 5feb0d6b3..000000000 --- a/tests/run/tcopy.nim +++ /dev/null @@ -1,25 +0,0 @@ -discard """ - file: "tcopy.nim" - output: "TEMP=C:\\Programs\\xyz\\bin" -""" -# tests the substr proc - -import - strutils - -proc main() = - const - example = r"TEMP=C:\Programs\xyz\bin" - var - a, b: string - p: int - p = find(example, "=") - a = substr(example, 0, p-1) - b = substr(example, p+1) - writeln(stdout, a & '=' & b) - #writeln(stdout, b) - -main() -#OUT TEMP=C:\Programs\xyz\bin - - |