For the benefit of those unacquainted with the Turing Test, it is a test proposed by computer scientist and philosopher Alan Turing. The idea was that a person would talk with a computer, unaware of who/what they were talking to. If, at the end of the conversation the person is unable to determine whether they were talking to a human or a robot (i.e. the computer has fooled the questioner into thinking they're a person) then they're said to have passed a key measure of sentience.
Now, after a search on Memory Alpha, I've found no references to the Turing test which got me thinking : When was the Turing test passed in Star Trek?
I would expect it to be passed before the time of Lore (e.g. 2330s) considering he would pass the test. I want to know if there was any reference in Star Trek materials (i.e. TV episodes, movies, comics, books) to the Turing Test and, if so what this reference involved.