to test sb or their strength, intelligence, etc. in a struggle or contest against sb/sth else :
Lawyers and accountants felt that they were being pitted against each other.
a chance to pit your wits against the world champions (= in a test of your intelligence)