MCPcopy Create free account
hub / github.com/denoland/std / fn

Function fn

internal/diff_str_test.ts:8–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6Deno.test({
7 name: 'diff() "a" vs "b" (diffstr)',
8 fn() {
9 const diffResult = diffStr("a", "b");
10 assertEquals(diffResult, [
11 {
12 details: [
13 { type: "removed", value: "a" },
14 { type: "common", value: "\n" },
15 ],
16 type: "removed",
17 value: "a\n",
18 },
19 {
20 details: [
21 { type: "added", value: "b" },
22 { type: "common", value: "\n" },
23 ],
24 type: "added",
25 value: "b\n",
26 },
27 ]);
28 },
29});
30
31Deno.test({

Callers

nothing calls this directly

Calls 5

diffStrFunction · 0.90
assertEqualsFunction · 0.90
createDetailsFunction · 0.90
tokenizeFunction · 0.90
unescapeFunction · 0.90

Tested by

no test coverage detected