Hi so have some list of data which I've define as macros. Everything below are all in a package.
\newcommand{\testa}[0]{1/2/2/1,3/4/2/3}
I have many more of these predefined. I also have a command which I would like to utilize these macros I've defined earlier.
\newcommand{\dosomething}[1]{
\begin{tikzpicture}
\foreach \x / \y / \a / \b in {#1} {
\draw[black,line width=0.1cm] (\a,\b) -- (\x,\y);
};
\end{tikzpicture}
}
But here is the problem. This is whats happening when I try to use them outside of the package.
% The following works
\dosomething{1/2/2/1,3/4/2/3}
% This however does not...
\dosomething{\testa}
I end up getting the error
! Missing = inserted for \ifnum
<to be read again>
/
There is clearly something that I am misunderstanding but I'm not sure what. I've tried searching for this problem but I couldn't find something to what I was looking for or I might have just too little understanding of latex to correlate it to my own problem. Thanks for the help.

\expandafter\dosomething\expandafter{\testa}(untested, however), as a possible way what @TeXnician mentioned.... – Jan 18 '18 at 19:23