TestResultObject
<TestResultObject> -- VerificationTest's TestResultObject (https://github.com/enumeratio/enumeratio/wiki/Computation §5.4): the held input as an In row, the actual output as an Out row, and a badge for the outcome (Success ✓ / Failure ≠, expected shown / Error ! / Aborted ∅), plus the time used and, when set, the TestID. Reuses <Out> (label/label-menu) for both rows rather than re-typesetting anything itself.
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
input | string | "" | The held input, as Epsil source. |
actual | string | "" | The evaluated result, as Epsil source; absent on Error/Aborted. |
expected | string | "" | What it was compared against, as Epsil source; absent when there was none. |
outcome | Outcome | "" | Success, Failure, Error or Aborted.reflects |
time | number | undefined | undefined | AbsoluteTimeUsed, in seconds. |
testId attribute test-id | string | "" | TestID, when the test named one. |
As a web component
Plain custom elements, no framework required: import @enumeratio/frontend for the side effect and write <notatio-test-result-object> in any HTML. Attributes are kebab-case and always strings; the props table above names each one's attribute where it differs from its prop.