I've been programming for 40 years, 35 of that professionally. I've built my own compilers and entire game engines and I don't think I could pass a programming test for a job interview these days. We never gave programming test for RtMI, we just talked about programming with the candidate and never got a bum hire.
@grumpygamer there's a whole range programming tests. some are totally trivial & will only weed out people who are completely bullshitting on their cv, but there's also ones that are trying to wrangle free work and never intending to hire in the first place