Skip to content

Commit 2ff0ed7

Browse files
committed
test: clean up ordering of tests
1 parent a758b0f commit 2ff0ed7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

index.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,15 @@ test("scanRight1", t => {
327327
);
328328
});
329329

330+
test("split", t => {
331+
t.deepEqual(split([2, 1, 3, 4, 5, 6], 2), [
332+
[2, 1],
333+
[3, 4, 5, 6]
334+
]);
335+
t.deepEqual(split([2, 1, 3, 4, 5, 6], 0), [[], [2, 1, 3, 4, 5, 6]]);
336+
t.deepEqual(split([2, 1, 3, 4, 5, 6], 10), [[2, 1, 3, 4, 5, 6], []]);
337+
});
338+
330339
type Result<T> = Success<T> | Error;
331340

332341
interface Success<T> {
@@ -338,15 +347,6 @@ interface Error {
338347
type: "error";
339348
}
340349

341-
test("split", t => {
342-
t.deepEqual(split([2, 1, 3, 4, 5, 6], 2), [
343-
[2, 1],
344-
[3, 4, 5, 6]
345-
]);
346-
t.deepEqual(split([2, 1, 3, 4, 5, 6], 0), [[], [2, 1, 3, 4, 5, 6]]);
347-
t.deepEqual(split([2, 1, 3, 4, 5, 6], 10), [[2, 1, 3, 4, 5, 6], []]);
348-
});
349-
350350
function isSuccess<T>(result: Result<T>): result is Success<T> {
351351
return result.type === "success";
352352
}

0 commit comments

Comments
 (0)