I got a test time out in the RNA Transcription

I always use the exercism editor for the exrcises, when i got the time out error i tested it on cxxdroid and it worked as it should but when I tried it in the editor i get the time out error, is it my code or problem with the site. Here is my code:
rna_transcription.h

#if !defined(RNA_TRANSCRIPTION_H)
#define RNA_TRANSCRIPTION_H
#include <utility>
#include <string>
namespace rna_transcription
{
constexpr std::pair<std::string_view,std::string_view> dna_rna {“GCTA”,“CGAU”};
std::string to_rna(std::string_view dna_strand);
} // namespace rna_transcription
#endif // RNA_TRANSCRIPTION_H

trancription.cpp

#include “rna_transcription.h”
#include <cctype>
namespace rna_transcription
{
std::string to_rna(std::string_view dna_strand)
{
int index{};
std::string rna_strand{};
for(char i:dna_strand)
{
index = (dna_rna.first).find(std::toupper(i));
rna_strand += (dna_rna.second)[index];
}
return rna_strand;
}

} // namespace rna_transcription

I do not know why the tests time out. But did you notice that the tests actually require two functions, one that takes a single char and return a char, another that takes a string and return a std::string.

1 Like

You may want to try changing whitespace or a comment in the file and rerunning, too. Sometimes the machines just get overloaded and slow.

1 Like

That fixed it, it works now.
Thank you.