Skip to content

Commit 0de8eb2

Browse files
committed
test(maximum): add maximum test
1 parent 5d0e55f commit 0de8eb2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

index.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
isArrayLike,
2222
last,
2323
map,
24+
maximum,
2425
partition,
2526
partitionWhile,
2627
remove,
@@ -205,6 +206,12 @@ test("find", t => {
205206
);
206207
});
207208

209+
test("maximum", t => {
210+
t.is(maximum([1, 2, 3]), 3);
211+
t.is(maximum([1, 2, 3, 4, 3, 2, 1]), 4);
212+
t.is(maximum([]), null);
213+
});
214+
208215
type Result<T> = Success<T> | Error;
209216

210217
interface Success<T> {

0 commit comments

Comments
 (0)