diff options
Diffstat (limited to 'tests/tprintf.nim')
-rwxr-xr-x | tests/tprintf.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/tprintf.nim b/tests/tprintf.nim new file mode 100755 index 000000000..65427d463 --- /dev/null +++ b/tests/tprintf.nim @@ -0,0 +1,10 @@ +# Test a printf proc + +proc printf(file: TTextFile, args: openarray[string]) = + var i = 0 + while i < args.len: + write(file, args[i]) + inc(i) + +printf(stdout, ["Andreas ", "Rumpf\n"]) +#OUT Andreas Rumpf |