diff options
Diffstat (limited to 'pyfarbpracht/test.py')
-rwxr-xr-x | pyfarbpracht/test.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pyfarbpracht/test.py b/pyfarbpracht/test.py new file mode 100755 index 0000000..ac74add --- /dev/null +++ b/pyfarbpracht/test.py @@ -0,0 +1,22 @@ +#!/bin/env python + +import pyfarbpracht + +def test(): + ret = pyfarbpracht.printc('green', 'green test with newline', enable_color=True) + print(ret) + ret = pyfarbpracht.printc('cyan', 'cyan but enable_color=False', enable_color=False) + print(ret) + ret = pyfarbpracht.printc('magenta', 'magenta no newline', enable_color=True, no_newline=True) + print(ret) + print(ret) + + print('') + print('') + + print(pyfarbpracht.colored('green', 'print(colored(... test in green')) + print(pyfarbpracht.colored( \ + 'green', 'print(colored(... test in green no newline'), end='') + +if __name__ == '__main__': + test() |