Remove newlines from painter test by using temporary variables to store numbers