@@ -138,32 +138,45 @@ function generateFailedTestRow(test: MatlabTestCase): string {
138138 <td>
139139 <details>
140140 <summary>View details</summary>
141- <pre style="font-family: monospace; white-space: pre; overflow-x: auto;">` +
142- test . diagnostics . map ( d => formatDiagnosticReport ( d . report ) ) . join ( '\n' ) +
143- `</pre>
141+ <table>
142+ <tr>
143+ <th>Actual</th>
144+ <th>Expected</th>
145+ <th>Error</th>
146+ <th>RelativeError</th>
147+ </tr>
148+ <tr>
149+ <td>2.5</td>
150+ <td>3.0</td>
151+ <td>-0.5</td>
152+ <td>-0.167</td>
153+ </tr>
154+ </table>
155+ <pre style="font-family: monospace; white-space: pre;">${ test . diagnostics . map ( d => d . report ) . join ( '\n' ) } </pre>
144156 </details>
145157 </td>
146158 </tr>` ;
147159}
148160
149- function formatDiagnosticReport ( report : string ) : string {
150- return report
151- // HTML special characters
152- . replace ( / & / g, '&' )
153- . replace ( / < / g, '<' )
154- . replace ( / > / g, '>' )
155- . replace ( / " / g, '"' )
156- . replace ( / ' / g, ''' )
157- . replace ( / ` / g, '`' )
158- // Path separators for all OS
159- . replace ( / \\ / g, '\\\\' ) // Windows backslash
160- . replace ( / \/ / g, '/' ) // Unix forward slash
161- // Preserve MATLAB formatting
162- . replace ( / \r \n / g, '\n' ) // Windows line endings
163- . replace ( / \r / g, '\n' ) // Mac old-style line endings
164- . replace ( / \t / g, ' ' ) // Tabs to spaces
165- . trim ( ) ;
166- }
161+
162+ // function formatDiagnosticReport(report: string): string {
163+ // return report
164+ // // HTML special characters
165+ // .replace(/&/g, '&')
166+ // .replace(/</g, '<')
167+ // .replace(/>/g, '>')
168+ // .replace(/"/g, '"')
169+ // .replace(/'/g, ''')
170+ // .replace(/`/g, '`')
171+ // // Path separators for all OS
172+ // .replace(/\\/g, '\\\\') // Windows backslash
173+ // .replace(/\//g, '/') // Unix forward slash
174+ // // Preserve MATLAB formatting
175+ // .replace(/\r\n/g, '\n') // Windows line endings
176+ // .replace(/\r/g, '\n') // Mac old-style line endings
177+ // .replace(/\t/g, ' ') // Tabs to spaces
178+ // .trim();
179+ // }
167180
168181function getStatusEmoji ( status : MatlabTestStatus ) : string {
169182 switch ( status ) {
0 commit comments