summaryrefslogtreecommitdiff
path: root/std/testing/_diff.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/testing/_diff.ts')
-rw-r--r--std/testing/_diff.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/std/testing/_diff.ts b/std/testing/_diff.ts
index 5c84e891f..e6f631002 100644
--- a/std/testing/_diff.ts
+++ b/std/testing/_diff.ts
@@ -36,6 +36,11 @@ function createCommon<T>(A: T[], B: T[], reverse?: boolean): T[] {
return common;
}
+/**
+ * Renders the differences between the actual and expected values
+ * @param A Actual value
+ * @param B Expected value
+ */
export function diff<T>(A: T[], B: T[]): Array<DiffResult<T>> {
const prefixCommon = createCommon(A, B);
const suffixCommon = createCommon(