3 ms·
> Fellow programmers, how exactly do you unit test a method / function which draws something on the canvas for example? We don't. Canvas drawing routines are
by klibertp 11y ago
> Fellow programmers, how exactly do you unit test a method / function which draws something on the canvas for example?
We don't. Canvas drawing routines are hopefully unit-tested already by their authors. We do write unit tests for calculations and logic to make sure that the values passed to some canvas function are as expected.