@@ -115,8 +115,8 @@ function setTestResults(results) {
115
115
return `
116
116
<p>Testcase Name: ${ test . testcase_name } </p>
117
117
<p>Status: ${ test . status } </p>
118
- ${ test . actual ? `<p>Actual: ${ test . actual } </p>` : '' }
119
- ${ test . expected ? `<p>Expected: ${ test . expected } </p>` : '' }
118
+ ${ test . actual ? `<p>Actual: ${ JSON . stringify ( test . actual ) } </p>` : '' }
119
+ ${ test . expected ? `<p>Expected: ${ JSON . stringify ( test . expected ) } </p>` : '' }
120
120
${ test . reason ? `<p>Reason: ${ test . reason } </p>` : '' }
121
121
${ testcase ? `<p>Testcase: ${ testcase } </p>` : '' }
122
122
<hr>
@@ -201,7 +201,7 @@ function setCustomTestcaseResults(results) {
201
201
202
202
document . getElementById ( 'testcase-stdout' ) . textContent = results . stdout ;
203
203
document . getElementById ( 'testcase-output' ) . textContent =
204
- results . tests [ 0 ] . actual ;
204
+ JSON . stringify ( results . tests [ 0 ] . actual ) ;
205
205
206
206
run ( setExpectedTestcaseResults , directoryManager . getCustomTestcaseName ( ) ,
207
207
true ) ;
@@ -226,7 +226,7 @@ function setExpectedTestcaseResults(expected) {
226
226
}
227
227
228
228
document . getElementById ( 'expected-output' ) . textContent =
229
- expected . tests [ 0 ] . actual ;
229
+ JSON . stringify ( expected . tests [ 0 ] . actual ) ;
230
230
}
231
231
232
232
function runCustomTestcase ( ) {
0 commit comments