\input regression-test.tex
\documentclass{article}
\usepackage{tikzphysics}
\makeatletter
\newcount\strokes
\newcount\badstrokes
\def\checkstroke{%
 \global\advance\strokes by 1
 \ifdim\pgflinewidth=1.25pt\else
  \global\advance\badstrokes by 1
  \TYPE{FAIL: stroke width \the\pgflinewidth}%
 \fi
}
\let\originalstroke\pgfsys@stroke
\let\originalfillstroke\pgfsys@fillstroke
\def\pgfsys@stroke{\checkstroke\originalstroke}
\def\pgfsys@fillstroke{\checkstroke\originalfillstroke}
\makeatother
\begin{document}\START
\setbox0=\hbox{\begin{tikzpicture}[line width=1.25pt,>=latex]
\node[platform-left,pattern=none] {};
\node[curved-ramp,pattern=none] {};
\node[concave-mirror,pattern=none] {};
\node[disk] {};
\node[ring] {};
\draw[force] (0,0)--(1,0);
\draw[velocity] (0,0)--(1,0);
\draw[acceleration] (0,0)--(1,0);
\draw[torque] (0,0)--(1,0);
\draw[rod] (0,0)--(1,0);
\node[polar element,pattern=none,show dimensions] (P) {};
\node[rectangular element,pattern=none,show dimensions] (A) {};
\pic {sphere slice diagram={every solid element/.append style={pattern=none}}};
\pic {cylinder shell diagram={every solid element/.append style={pattern=none}}};
\node[convection surface] {};
\node[radiating body] {};
\node[thermometer] {};
\node[isothermal process] {};
\pic {heat engine diagram};
\node[pressure element,pattern=none] {};
\end{tikzpicture}}
\ifnum\badstrokes=0\TYPE{PASS: all physical strokes inherit document line width}\fi
\ifnum\strokes>30\TYPE{PASS: representative modules emitted physical strokes}\else\TYPE{FAIL: insufficient stroke coverage}\fi
\END\end{document}
