Aug-10-2020, 02:55 PM
What is your pattern? I would create the pattern as a string and print it so that I could verify I got the pattern correct. Independently I might test the logic that uses the pattern. Testing both at the same time makes it difficult to zoom in on the problem.