aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/test.py b/test.py
new file mode 100755
index 0000000..3693134
--- /dev/null
+++ b/test.py
@@ -0,0 +1,15 @@
+#!/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)
+
+if __name__ == '__main__':
+ test()
in each repos: see "about"-tab (if existing) for more details / README.
mailto contact at omeckman dot net
all timestamps in UTC (German winter time: UTC+01:00, summer time: UTC+02:00)
dark theme is a modded version of: https://gist.github.com/Yoplitein/f4b671a2ec70c9e743fa