\documentclass{article}
\usepackage{tcolorbox}
\begin{document}
\begin{tcolorbox}[sidebyside=true, title=test]
\begin{verbatim}
this is <strong>not</strong> a test this is not a test this is not a test
$x+2=0$
$x=-2$
$x$ is negative
\end{verbatim}
\tcblower
Right part.
\end{tcolorbox}
\end{document}
The error is "Overfull \hbox too wide". I'm reading tcolorbox documentation but I don't understand why this happens.
The text in the left part should remain inside it, how to do it?
EDIT
Maybe the solution is to use lstlisting with breaklines=true instead of verbatim.



\texttt{this}, that is very different of a verbatim text. – Fran Oct 13 '19 at 05:12