Skip to content

Commit 3f9f6bd

Browse files
committed
Tests
1 parent 3a186a5 commit 3f9f6bd

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

src/array/for_each_pair.test.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { assertEquals } from "https://deno.land/std@0.203.0/assert/assert_equals.ts";
2+
import forEachPair from "./for_each_pair.ts";
3+
4+
Deno.test(
5+
'Remove duplicates from array.',
6+
async (test) => {
7+
await test.step({
8+
name: 'Empty array',
9+
fn: () => {
10+
11+
}
12+
})
13+
}
14+
)

src/array/for_each_pair.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* This function calls the specified `pairFunction` for all the elements in an array. The function
3-
* starts with the second element and calls the `pairFunction` for every element. If the array only
4-
* contains one element, the `pairFunction` does not get called.
3+
* starts with the second element and calls the `pairFunction` for every element. If the array
4+
* contains less than two elements, the `pairFunction` does not get called.
55
*
66
* @example
77
* ```ts

0 commit comments

Comments
 (0)