Nik4 icon indicating copy to clipboard operation
Nik4 copied to clipboard

Add unit tests

Open Nakaner opened this issue 6 years ago • 0 comments

The code which calculates the bounding box, scale, scale factor etc. has become quite long and it is likely to break something if you fix/add something different. @Zverik moved it into its own function recently. However, a few unit tests would benefit the project.

I started working on testability today. You can see progress in the branch unittest in my fork of this repository. To make testing easier, I created a new class Nik4Image. I will move more and more code from the main nik4.py file into it.

Feedback is welcome.

Nakaner avatar Jun 26 '18 15:06 Nakaner