What is a test called that involves indicating whether a line has the same slope as a previous image? I would like to know the name of the following test:

Participants were asked to memorize the slope of a line of a target image. 
Then different images (lines with varying slopes) were presented sequentially. Participants were asked to press one of two buttons to indicate whether the displayed image was the same or different to the target image.


Is it a recognition memory test?
Does this test have a specific name?
The task sounds like a match-to-sample task which is indeed used in working memory studies. In this test participants are presented with a sample stimulus and have to judge whether or not following stimuli resemble this particular stimulus. Depending on the time span between the presentation of the sample stimulus and the following stimuli this task is sometimes also called a delayed match-to-sample task.