diff --git a/tests/test_color.py b/tests/test_color.py new file mode 100644 index 0000000..4dd1b01 --- /dev/null +++ b/tests/test_color.py @@ -0,0 +1,10 @@ +import testenv +from papers import color + +def perf_color(): + s = str(range(1000)) + for _ in range(5000000): + color.dye(s, color.red) + +if __name__ == '__main__': + perf_color() \ No newline at end of file diff --git a/tests/testenv.py b/tests/testenv.py new file mode 100644 index 0000000..bacd731 --- /dev/null +++ b/tests/testenv.py @@ -0,0 +1,3 @@ +# Adjusting paths. +import os, sys +sys.path.insert(0, os.path.abspath(os.path.join(__file__, '../..'))) \ No newline at end of file