Testing if a line prints